toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = Map<String, dynamic>();
  data['message'] = this.message;
  data['description'] = this.description;
  data['resource'] = this.resource;
  if (this.errors != null) {
    data['errors'] = this.errors!.map((v) => v.toJson()).toList();
  }
  return data;
}