ServerError.fromJson constructor

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

Implementation

ServerError.fromJson(Map<String, dynamic> json) {
  error = ErrorMessage.fromJson(json['error']);

  //timestamp = json['timestamp'];
  //status = json['status'];
  //error = json['error'];
  message = error!.message;//json['message'];
  //path = json['path'];
}