ActiveHistoryData constructor

ActiveHistoryData({
  1. int? seconds,
  2. int? points,
  3. Map<String, CityHistoryMap>? from,
  4. Map<int, String>? dau,
  5. Map<String, int>? device,
})

Implementation

factory ActiveHistoryData({
  $core.int? seconds,
  $core.int? points,
  $core.Map<$core.String, CityHistoryMap>? from,
  $core.Map<$core.int, $core.String>? dau,
  $core.Map<$core.String, $core.int>? device,
}) {
  final _result = create();
  if (seconds != null) {
    _result.seconds = seconds;
  }
  if (points != null) {
    _result.points = points;
  }
  if (from != null) {
    _result.from.addAll(from);
  }
  if (dau != null) {
    _result.dau.addAll(dau);
  }
  if (device != null) {
    _result.device.addAll(device);
  }
  return _result;
}