toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = Map<String, dynamic>();
  data['field'] = this.field;
  data['error_code'] = this.errorCode;
  data['message'] = this.message;
  return data;
}