toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var errorMessages = this.errorMessages;
  var errors = this.errors;
  var httpStatusCode = this.httpStatusCode;

  final json = <String, Object?>{};
  json[r'errorMessages'] = errorMessages;
  if (errors != null) {
    json[r'errors'] = errors;
  }
  if (httpStatusCode != null) {
    json[r'httpStatusCode'] = httpStatusCode;
  }
  return json;
}