ResponseModel<T>.fromJson constructor
Implementation
factory ResponseModel.fromJson(Map<String, dynamic> json, T Function(Map<String, dynamic>) fromJson) {
return ResponseModel<T>(
data: fromJson(json['data']),
error: json['error'] ?? false,
message: json['message'] ?? "",
);
}