TestInvokeMethodResponse.fromJson constructor
TestInvokeMethodResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TestInvokeMethodResponse.fromJson(Map<String, dynamic> json) {
return TestInvokeMethodResponse(
body: json['body'] as String?,
headers: (json['headers'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
latency: json['latency'] as int?,
log: json['log'] as String?,
multiValueHeaders: (json['multiValueHeaders'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k, (e as List).whereNotNull().map((e) => e as String).toList())),
status: json['status'] as int?,
);
}