Dashboard overview
This commit is contained in:
parent
c6b08a6d00
commit
e43c993621
|
|
@ -1173,15 +1173,21 @@ abstract class DashboardField
|
||||||
factory DashboardField({
|
factory DashboardField({
|
||||||
String field,
|
String field,
|
||||||
String period,
|
String period,
|
||||||
|
String type,
|
||||||
}) {
|
}) {
|
||||||
return _$DashboardField._(
|
return _$DashboardField._(
|
||||||
field: field ?? '',
|
field: field ?? '',
|
||||||
period: period ?? '',
|
period: period ?? '',
|
||||||
|
type: type ?? TYPE_SUM,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
DashboardField._();
|
DashboardField._();
|
||||||
|
|
||||||
|
static const TYPE_SUM = 'sum';
|
||||||
|
static const TYPE_COUNT = 'count';
|
||||||
|
static const TYPE_AVERAGE = 'average';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@memoized
|
@memoized
|
||||||
int get hashCode;
|
int get hashCode;
|
||||||
|
|
@ -1190,6 +1196,12 @@ abstract class DashboardField
|
||||||
|
|
||||||
String get period;
|
String get period;
|
||||||
|
|
||||||
|
String get type;
|
||||||
|
|
||||||
|
// ignore: unused_element
|
||||||
|
static void _initializeBuilder(DashboardFieldBuilder builder) =>
|
||||||
|
builder..type = TYPE_SUM;
|
||||||
|
|
||||||
static Serializer<DashboardField> get serializer =>
|
static Serializer<DashboardField> get serializer =>
|
||||||
_$dashboardFieldSerializer;
|
_$dashboardFieldSerializer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1455,6 +1455,8 @@ class _$DashboardFieldSerializer
|
||||||
'period',
|
'period',
|
||||||
serializers.serialize(object.period,
|
serializers.serialize(object.period,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
|
'type',
|
||||||
|
serializers.serialize(object.type, specifiedType: const FullType(String)),
|
||||||
];
|
];
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
@ -1480,6 +1482,10 @@ class _$DashboardFieldSerializer
|
||||||
result.period = serializers.deserialize(value,
|
result.period = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'type':
|
||||||
|
result.type = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4215,13 +4221,16 @@ class _$DashboardField extends DashboardField {
|
||||||
final String field;
|
final String field;
|
||||||
@override
|
@override
|
||||||
final String period;
|
final String period;
|
||||||
|
@override
|
||||||
|
final String type;
|
||||||
|
|
||||||
factory _$DashboardField([void Function(DashboardFieldBuilder) updates]) =>
|
factory _$DashboardField([void Function(DashboardFieldBuilder) updates]) =>
|
||||||
(new DashboardFieldBuilder()..update(updates)).build();
|
(new DashboardFieldBuilder()..update(updates)).build();
|
||||||
|
|
||||||
_$DashboardField._({this.field, this.period}) : super._() {
|
_$DashboardField._({this.field, this.period, this.type}) : super._() {
|
||||||
BuiltValueNullFieldError.checkNotNull(field, 'DashboardField', 'field');
|
BuiltValueNullFieldError.checkNotNull(field, 'DashboardField', 'field');
|
||||||
BuiltValueNullFieldError.checkNotNull(period, 'DashboardField', 'period');
|
BuiltValueNullFieldError.checkNotNull(period, 'DashboardField', 'period');
|
||||||
|
BuiltValueNullFieldError.checkNotNull(type, 'DashboardField', 'type');
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -4237,20 +4246,23 @@ class _$DashboardField extends DashboardField {
|
||||||
if (identical(other, this)) return true;
|
if (identical(other, this)) return true;
|
||||||
return other is DashboardField &&
|
return other is DashboardField &&
|
||||||
field == other.field &&
|
field == other.field &&
|
||||||
period == other.period;
|
period == other.period &&
|
||||||
|
type == other.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __hashCode;
|
int __hashCode;
|
||||||
@override
|
@override
|
||||||
int get hashCode {
|
int get hashCode {
|
||||||
return __hashCode ??= $jf($jc($jc(0, field.hashCode), period.hashCode));
|
return __hashCode ??=
|
||||||
|
$jf($jc($jc($jc(0, field.hashCode), period.hashCode), type.hashCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return (newBuiltValueToStringHelper('DashboardField')
|
return (newBuiltValueToStringHelper('DashboardField')
|
||||||
..add('field', field)
|
..add('field', field)
|
||||||
..add('period', period))
|
..add('period', period)
|
||||||
|
..add('type', type))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4267,13 +4279,20 @@ class DashboardFieldBuilder
|
||||||
String get period => _$this._period;
|
String get period => _$this._period;
|
||||||
set period(String period) => _$this._period = period;
|
set period(String period) => _$this._period = period;
|
||||||
|
|
||||||
DashboardFieldBuilder();
|
String _type;
|
||||||
|
String get type => _$this._type;
|
||||||
|
set type(String type) => _$this._type = type;
|
||||||
|
|
||||||
|
DashboardFieldBuilder() {
|
||||||
|
DashboardField._initializeBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
DashboardFieldBuilder get _$this {
|
DashboardFieldBuilder get _$this {
|
||||||
final $v = _$v;
|
final $v = _$v;
|
||||||
if ($v != null) {
|
if ($v != null) {
|
||||||
_field = $v.field;
|
_field = $v.field;
|
||||||
_period = $v.period;
|
_period = $v.period;
|
||||||
|
_type = $v.type;
|
||||||
_$v = null;
|
_$v = null;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -4297,7 +4316,9 @@ class DashboardFieldBuilder
|
||||||
field: BuiltValueNullFieldError.checkNotNull(
|
field: BuiltValueNullFieldError.checkNotNull(
|
||||||
field, 'DashboardField', 'field'),
|
field, 'DashboardField', 'field'),
|
||||||
period: BuiltValueNullFieldError.checkNotNull(
|
period: BuiltValueNullFieldError.checkNotNull(
|
||||||
period, 'DashboardField', 'period'));
|
period, 'DashboardField', 'period'),
|
||||||
|
type: BuiltValueNullFieldError.checkNotNull(
|
||||||
|
type, 'DashboardField', 'type'));
|
||||||
replace(_$result);
|
replace(_$result);
|
||||||
return _$result;
|
return _$result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue