MsgScriptJSON.deserialize constructor

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

Implementation

factory MsgScriptJSON.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return MsgScriptJSON(
    sender: decode.getString<String?>(1),
    codeBytes: decode.getBytes<List<int>?>(2),
    typeArgs: decode.getListOrEmpty<String>(3),
    args: decode.getListOrEmpty<String>(4),
  );
}