toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'title': title,
    'alert': alert,
    'custom': custom,
    'customKeys': customKeys,
    'deleted': deleted,
    'endDateUtc': endDateUtc?.toIso8601String(),
    'read': read,
    'sendDateUtc': sendDateUtc?.toIso8601String(),
    'sound': sound,
    'startDateUtc': startDateUtc?.toIso8601String(),
    'subject': subject,
    'url': url,
    'media': media?.toJson(),
  };
}