toJson method

Map<String, Object?> toJson()

Implementation

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

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