ConditionalOrderTriggerFailureUpdate.deserialize constructor

ConditionalOrderTriggerFailureUpdate.deserialize(
  1. List<int> bytes
)

Implementation

factory ConditionalOrderTriggerFailureUpdate.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return ConditionalOrderTriggerFailureUpdate(
    marketId: decode.getString<String?>(1),
    subaccountId: decode.getString<String?>(2),
    markPrice: decode.getString<String?>(3),
    orderHash: decode.getString<String?>(4),
    cid: decode.getString<String?>(5),
    errorDescription: decode.getString<String?>(6),
  );
}