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'userId'] = this.userId;
    json[r'emailAddress'] = this.emailAddress;
    json[r'inboxId'] = this.inboxId;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  if (this.useThreads != null) {
    json[r'useThreads'] = this.useThreads;
  } else {
    json[r'useThreads'] = null;
  }
  return json;
}