toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.title != null) {
json[r'title'] = this.title;
} else {
json[r'title'] = null;
}
if (this.message != null) {
json[r'message'] = this.message;
} else {
json[r'message'] = null;
}
if (this.notificationAction != null) {
json[r'notification_action'] = this.notificationAction;
} else {
json[r'notification_action'] = null;
}
if (this.bookingId != null) {
json[r'booking_id'] = this.bookingId;
} else {
json[r'booking_id'] = null;
}
if (this.bookingStartTime != null) {
json[r'booking_start_time'] = this.bookingStartTime!.toUtc().toIso8601String();
} else {
json[r'booking_start_time'] = null;
}
if (this.isRead != null) {
json[r'is_read'] = this.isRead;
} else {
json[r'is_read'] = null;
}
if (this.created != null) {
json[r'created'] = this.created!.toUtc().toIso8601String();
} else {
json[r'created'] = null;
}
return json;
}