toJson method
Implementation
Map<String, Object?> toJson() {
var isFavourite = this.isFavourite;
var favouritedDate = this.favouritedDate;
final json = <String, Object?>{};
json[r'isFavourite'] = isFavourite;
if (favouritedDate != null) {
json[r'favouritedDate'] = favouritedDate.toIso8601String();
}
return json;
}