APIException.fromJson constructor

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

Implementation

factory APIException.fromJson(Map<String, dynamic> json) {
  return APIException(
    name: json['error']['name'].toString(),
    message: json['error']['message'],
  );
}