ReverseTwitterRegistryAccount.fromAccountBytes constructor

ReverseTwitterRegistryAccount.fromAccountBytes(
  1. List<int> accountBytes
)

Implementation

factory ReverseTwitterRegistryAccount.fromAccountBytes(
    List<int> accountBytes) {
  final decode = LayoutSerializable.decode(
      bytes: accountBytes.sublist(NameRegistryAccountUtils.hiddenDataOffset),
      layout: _Utils.layout);
  return ReverseTwitterRegistryAccount(
      twitterRegistryKey: decode["twitterRegistryKey"],
      twitterHandle: decode["twitterHandle"]);
}