AggregatedData constructor

const AggregatedData({
  1. @JsonKey(name: 'total_seconds') required num totalSeconds,
  2. @JsonKey(name: 'is_up_to_date') required bool isUpToDate,
  3. @NumConverter() required num decimal,
  4. required AggregatedDataRange range,
  5. required String digital,
  6. required String text,
  7. required int timeout,
})

Implementation

const factory AggregatedData({
  @JsonKey(name: 'total_seconds') required num totalSeconds,
  @JsonKey(name: 'is_up_to_date') required bool isUpToDate,
  @NumConverter() required num decimal,
  required AggregatedDataRange range,
  required String digital,
  required String text,
  required int timeout,
}) = _AggregatedData;