QueryContinuousFundsResponse.fromJson constructor
QueryContinuousFundsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory QueryContinuousFundsResponse.fromJson(Map<String, dynamic> json) {
return QueryContinuousFundsResponse(
continuousFunds:
(json.valueEnsureAsList<dynamic>(
'continuous_funds',
acceptCamelCase: true,
))
.map(
(e) => JsonParser.valueTo<
cosmos_protocolpool_v1_types.ContinuousFund,
Map<String, dynamic>
>(
value: e,
parse:
(v) => cosmos_protocolpool_v1_types
.ContinuousFund.fromJson(v),
),
)
.toList(),
);
}