UserAllocation.deserialize constructor

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

Implementation

factory UserAllocation.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return UserAllocation(
    airdropId: decode.getString<String?>(1),
    address: decode.getString<String?>(2),
    claimed: decode.getString<String?>(3),
    forfeited: decode.getString<String?>(4),
    allocations: decode.getListOrEmpty<String>(5),
  );
}