FailureData.fromJson constructor
FailureData.fromJson(
- Map json
Implementation
factory FailureData.fromJson(Map<dynamic, dynamic> json) {
print("Failed data :: ${json.toString()}");
return FailureData(message: json['error'], errorCode: json['errorCode']);
}