ClaimMetadata.deserialize constructor
ClaimMetadata.deserialize(
- List<int> bytes
)
Implementation
factory ClaimMetadata.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return ClaimMetadata(
airdropIdentifier: decode.getString<String?>(1),
currentRound: decode.getString<String?>(2),
currentRoundStart: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
3,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
currentRoundEnd: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
4,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
);
}