QueryAirdropResponse.deserialize constructor
QueryAirdropResponse.deserialize(
- List<int> bytes
)
Implementation
factory QueryAirdropResponse.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return QueryAirdropResponse(
id: decode.getString<String?>(1),
rewardDenom: decode.getString<String?>(2),
distributionStartDate: decode
.messageTo<google_protobuf_timestamp.Timestamp?>(
3,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
distributionEndDate: decode
.messageTo<google_protobuf_timestamp.Timestamp?>(
4,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
clawbackDate: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
5,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
claimTypeDeadlineDate: decode
.messageTo<google_protobuf_timestamp.Timestamp?>(
6,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
earlyClaimPenalty: decode.getString<String?>(7),
distributorAddress: decode.getString<String?>(8),
allocatorAddress: decode.getString<String?>(9),
linkerAddress: decode.getString<String?>(10),
currentDateIndex: decode.getBigInt<BigInt?>(11),
airdropLength: decode.getBigInt<BigInt?>(12),
);
}