toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.attempt != null) {
    json[r'attempt'] = this.attempt;
  } else {
    json[r'attempt'] = null;
  }
  if (this.created != null) {
    json[r'created'] = this.created;
  } else {
    json[r'created'] = null;
  }
  if (this.delivery != null) {
    json[r'delivery'] = this.delivery;
  } else {
    json[r'delivery'] = null;
  }
  if (this.durationMs != null) {
    json[r'durationMs'] = this.durationMs;
  } else {
    json[r'durationMs'] = null;
  }
  if (this.endpoint != null) {
    json[r'endpoint'] = this.endpoint;
  } else {
    json[r'endpoint'] = null;
  }
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  if (this.httpStatus != null) {
    json[r'httpStatus'] = this.httpStatus;
  } else {
    json[r'httpStatus'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  return json;
}