MsgSubmitQueryResponse.fromJson constructor
MsgSubmitQueryResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MsgSubmitQueryResponse.fromJson(Map<String, dynamic> json) {
return MsgSubmitQueryResponse(
chainId: json.valueAsString<String?>('chain_id', acceptCamelCase: true),
queryId: json.valueAsString<String?>('query_id', acceptCamelCase: true),
result: json.valueAsBytes<List<int>?>(
'result',
acceptCamelCase: true,
encoding: StringEncoding.base64,
),
proofOps: json
.valueTo<tendermint_crypto_proof.ProofOps?, Map<String, dynamic>>(
key: 'proof_ops',
parse: (v) => tendermint_crypto_proof.ProofOps.fromJson(v),
acceptCamelCase: true,
),
height: json.valueAsBigInt<BigInt?>('height', acceptCamelCase: true),
fromAddress: json.valueAsString<String?>(
'from_address',
acceptCamelCase: true,
),
);
}