QueryCondition.deserialize constructor
QueryCondition.deserialize(
- List<int> bytes
)
Implementation
factory QueryCondition.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return QueryCondition(
lockQueryType: decode.getEnum<LockQueryType?>(1, LockQueryType.values),
denom: decode.getString<String?>(2),
duration: decode.messageTo<google_protobuf_duration.Duration?>(
3,
(b) => google_protobuf_duration.Duration.deserialize(b),
),
timestamp: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
4,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
);
}