HttpParameters.fromJson constructor
HttpParameters.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HttpParameters.fromJson(Map<String, dynamic> json) {
return HttpParameters(
headerParameters: (json['HeaderParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
pathParameterValues: (json['PathParameterValues'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
queryStringParameters:
(json['QueryStringParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}