toJson method

Map<String, dynamic> toJson()

Implementation

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