toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.recipients != null) {
    json[r'recipients'] = this.recipients;
  } else {
    json[r'recipients'] = null;
  }
  if (this.userId != null) {
    json[r'userId'] = this.userId;
  } else {
    json[r'userId'] = null;
  }
  if (this.emailId != null) {
    json[r'emailId'] = this.emailId;
  } else {
    json[r'emailId'] = null;
  }
  if (this.inboxId != null) {
    json[r'inboxId'] = this.inboxId;
  } else {
    json[r'inboxId'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.sentId != null) {
    json[r'sentId'] = this.sentId;
  } else {
    json[r'sentId'] = null;
  }
  if (this.replierId != null) {
    json[r'replierId'] = this.replierId;
  } else {
    json[r'replierId'] = null;
  }
  return json;
}