QueryCurrentPlanResponse.deserialize constructor

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

Implementation

factory QueryCurrentPlanResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryCurrentPlanResponse(
    plan: decode.messageTo<cosmos_upgrade_v1beta1_upgrade.Plan?>(
      1,
      (b) => cosmos_upgrade_v1beta1_upgrade.Plan.deserialize(b),
    ),
  );
}