toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.userId != null) {
    json[r'userId'] = this.userId;
  } else {
    json[r'userId'] = null;
  }
  if (this.sentEmailId != null) {
    json[r'sentEmailId'] = this.sentEmailId;
  } else {
    json[r'sentEmailId'] = null;
  }
    json[r'recipient'] = this.recipient;
  if (this.diagnosticCode != null) {
    json[r'diagnosticCode'] = this.diagnosticCode;
  } else {
    json[r'diagnosticCode'] = null;
  }
  if (this.action != null) {
    json[r'action'] = this.action;
  } else {
    json[r'action'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  return json;
}