toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'userId'] = this.userId;
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.inboxId != null) {
    json[r'inboxId'] = this.inboxId;
  } else {
    json[r'inboxId'] = null;
  }
    json[r'headerId'] = this.headerId;
    json[r'delivered'] = this.delivered;
  if (this.exceptionName != null) {
    json[r'exceptionName'] = this.exceptionName;
  } else {
    json[r'exceptionName'] = null;
  }
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  return json;
}