ErrorEventModel.fromJson constructor

ErrorEventModel.fromJson(
  1. Map<String, dynamic> json
)

Creates an ErrorEventModel object from a JSON map.

This constructor deserializes the JSON data into an ErrorEventModel object.

Implementation

ErrorEventModel.fromJson(Map<String, dynamic> json) {
  message = json['message'];
  code = json['code'];
}