CalendarEventBean.fromJson constructor

CalendarEventBean.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CalendarEventBean.fromJson(Map<String, dynamic> json) =>
    CalendarEventBean(
      type: json["type"],
      maxNumber: json["maxNumber"] ?? -1,
      list: List<SavedCalendarEventInfoBean>.from(
        (json["list"] ?? []).map(
          (x) => (SavedCalendarEventInfoBean.fromJson(x)),
        ),
      ),
      state: json["statet"] ?? false,
      time: json["time"] ?? -1,
      calendarEventInfo: CalendarEventInfoBean.fromJson(
        json["calendarEventInfo"] ?? {},
      ),
    );