MethodOptions.deserialize constructor
MethodOptions.deserialize(
- List<int> bytes
)
Implementation
factory MethodOptions.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return MethodOptions(
deprecated: decode.getBool<bool?>(33),
idempotencyLevel: decode.getEnum<MethodOptionsIdempotencyLevel?>(
34,
MethodOptionsIdempotencyLevel.values,
),
features: decode.messageTo<FeatureSet?>(
35,
(b) => FeatureSet.deserialize(b),
),
uninterpretedOption:
decode
.getListOfBytes(999)
.map((b) => UninterpretedOption.deserialize(b))
.toList(),
);
}