QueryOutputProposalResponse.fromJson constructor
QueryOutputProposalResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory QueryOutputProposalResponse.fromJson(Map<String, dynamic> json) {
return QueryOutputProposalResponse(
bridgeId: json.valueAsBigInt<BigInt?>('bridge_id', acceptCamelCase: true),
outputIndex: json.valueAsBigInt<BigInt?>(
'output_index',
acceptCamelCase: true,
),
outputProposal: json
.valueTo<opinit_ophost_v1_types.Output?, Map<String, dynamic>>(
key: 'output_proposal',
parse: (v) => opinit_ophost_v1_types.Output.fromJson(v),
acceptCamelCase: true,
),
);
}