toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
    json[r'id'] = this.id;
    json[r'url'] = this.url;
  if (this.inboxId != null) {
    json[r'inboxId'] = this.inboxId;
  } else {
    json[r'inboxId'] = null;
  }
  if (this.eventName != null) {
    json[r'eventName'] = this.eventName;
  } else {
    json[r'eventName'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  if (this.phoneNumberId != null) {
    json[r'phoneNumberId'] = this.phoneNumberId;
  } else {
    json[r'phoneNumberId'] = null;
  }
  return json;
}