toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'isActive'] = this.isActive;
  json[r'createdOnUtc'] = this.createdOnUtc.toUtc().toIso8601String();
  json[r'subject'] = this.subject;
  json[r'subscriber'] = this.subscriber;
  if (this.activateBeforeUtc != null) {
    json[r'activateBeforeUtc'] =
        this.activateBeforeUtc!.toUtc().toIso8601String();
  } else {
    json[r'activateBeforeUtc'] = null;
  }
  if (this.expiresOnUtc != null) {
    json[r'expiresOnUtc'] = this.expiresOnUtc!.toUtc().toIso8601String();
  } else {
    json[r'expiresOnUtc'] = null;
  }
  return json;
}