PersonalEventAndCalendarModel.fromJson constructor
PersonalEventAndCalendarModel.fromJson(
- Map<String, dynamic> json
)
Implementation
PersonalEventAndCalendarModel.fromJson(Map<String, dynamic> json) {
color = json['color'];
isMemory = json["isMemory"];
isReminderCard = json["isReminderCard"];
calendarId = json["calendarId"];
calendarEventId = json["calendarEventId"];
cardType = json["cardType"];
if (json["personalEventId"] is String) {
personalEventId = json["personalEventId"];
}
if (json["localPathImage"] is String) {
localPathImage = json["localPathImage"];
}
if (json["reminderScheduled"] is Map) {
reminderScheduled = ReminderScheduled.fromJson(json["reminderScheduled"]);
}
if (json["calmModel"] is Map) {
calmModel = CalmModel.fromJson(json["calmModel"]);
}
}