decode static method

Implementation

static IdentityTokenMessage decode(BsatnDecoder decoder) {
  final identity = decoder.readBytes(32);
  final token = decoder.readString();
  final connectionId = decoder.readBytes(16);

  return IdentityTokenMessage(
    identity: identity,
    token: token,
    connectionId: connectionId,
  );
}