MsgCreateVestingAccount.deserialize constructor
MsgCreateVestingAccount.deserialize(
- List<int> bytes
)
Implementation
factory MsgCreateVestingAccount.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return MsgCreateVestingAccount(
fromAddress: decode.getString<String?>(1),
toAddress: decode.getString<String?>(2),
amount:
decode
.getListOfBytes(3)
.map((b) => cosmos_base_v1beta1_coin.Coin.deserialize(b))
.toList(),
startTime: decode.getBigInt<BigInt?>(4),
endTime: decode.getBigInt<BigInt?>(5),
);
}