createMockHttpResponse static method
Creates mock HTTP responses for testing
Implementation
static Map<String, dynamic> createMockHttpResponse({
required int statusCode,
required Map<String, dynamic> body,
Map<String, String>? headers,
}) {
return <String, dynamic>{
'statusCode': statusCode,
'body': body,
'headers': headers ?? <String, String>{'content-type': 'application/json'},
};
}