QueryGasPriceResponse.fromJson constructor

QueryGasPriceResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory QueryGasPriceResponse.fromJson(Map<String, dynamic> json) {
  return QueryGasPriceResponse(
    gasPrice: json
        .valueTo<cosmos_base_v1beta1_coin.DecCoin?, Map<String, dynamic>>(
          key: 'gas_price',
          parse: (v) => cosmos_base_v1beta1_coin.DecCoin.fromJson(v),
          acceptCamelCase: true,
        ),
  );
}