AccountWebAuthorizations.deserialize constructor

AccountWebAuthorizations.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AccountWebAuthorizations.deserialize(BinaryReader reader) {
  // Read [AccountWebAuthorizations] fields.
  final authorizations = reader.readVectorObject<WebAuthorizationBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [AccountWebAuthorizations] object.
  final returnValue = AccountWebAuthorizations(
    authorizations: authorizations,
    users: users,
  );

  // Now return the deserialized [AccountWebAuthorizations].
  return returnValue;
}