toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.agent != null) {
    json[r'agent'] = this.agent;
  } else {
    json[r'agent'] = null;
  }
  if (this.from != null) {
    json[r'from'] = this.from;
  } else {
    json[r'from'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.to != null) {
    json[r'to'] = this.to;
  } else {
    json[r'to'] = null;
  }
  return json;
}