ActiveHistory constructor
ActiveHistory({
- int? year,
- String? userId,
- 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;
}