toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'sender'] = this.sender;
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.bounceType != null) {
    json[r'bounceType'] = this.bounceType;
  } else {
    json[r'bounceType'] = null;
  }
  if (this.bounceMta != null) {
    json[r'bounceMta'] = this.bounceMta;
  } else {
    json[r'bounceMta'] = null;
  }
  return json;
}