toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.statusCode != null) {
    json[r'statusCode'] = this.statusCode;
  } else {
    json[r'statusCode'] = null;
  }
    json[r'status'] = this.status;
  if (this.code != null) {
    json[r'code'] = this.code;
  } else {
    json[r'code'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
  if (this.wasUnapproved != null) {
    json[r'wasUnapproved'] = this.wasUnapproved;
  } else {
    json[r'wasUnapproved'] = null;
  }
  return json;
}