AccountSetPrivacy.deserialize constructor

AccountSetPrivacy.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AccountSetPrivacy.deserialize(BinaryReader reader) {
  // Read [AccountSetPrivacy] fields.
  final key = reader.readObject() as InputPrivacyKeyBase;
  final rules = reader.readVectorObject<InputPrivacyRuleBase>();

  // Construct [AccountSetPrivacy] object.
  final returnValue = AccountSetPrivacy(
    key: key,
    rules: rules,
  );

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