ActiveHistory constructor

ActiveHistory({
  1. int? year,
  2. String? userId,
  3. Map<int, ActiveHistoryData>? data,
})

Implementation

factory ActiveHistory({
  $core.int? year,
  $core.String? userId,
  $core.Map<$core.int, ActiveHistoryData>? data,
}) {
  final _result = create();
  if (year != null) {
    _result.year = year;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (data != null) {
    _result.data.addAll(data);
  }
  return _result;
}