ErrorResponse.fromMap constructor
Implementation
factory ErrorResponse.fromMap(Map<String, dynamic> map) {
return ErrorResponse(
message: map['message'] ??
'', // Defaulting to an empty string if 'message' is null
provider: map['provider'] ??
'', // Defaulting to an empty string if 'provider' is null
data: List<String>.from(
map['data'] ?? []), // Defaulting to an empty list if 'data' is null
);
}