UserCalendar constructor

const UserCalendar({
  1. required List<int> activeYears,
  2. required List<DccBadges> dccBadges,
  3. required int streak,
  4. @JsonKey(fromJson: _SubmissionCalendarEntryConverter.fromJson, toJson: _SubmissionCalendarEntryConverter.toJson) required List<SubmissionCalendarEntry> submissionCalendar,
  5. required int totalActiveDays,
})

Implementation

const factory UserCalendar({
  required List<int> activeYears,
  required List<DccBadges> dccBadges,
  required int streak,
  @JsonKey(
    fromJson: _SubmissionCalendarEntryConverter.fromJson,
    toJson: _SubmissionCalendarEntryConverter.toJson,
  )
  required List<SubmissionCalendarEntry> submissionCalendar,
  required int totalActiveDays,
}) = _UserCalendar;