AccountSetGlobalPrivacySettings.deserialize constructor

AccountSetGlobalPrivacySettings.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AccountSetGlobalPrivacySettings.deserialize(BinaryReader reader) {
  // Read [AccountSetGlobalPrivacySettings] fields.
  final settings = reader.readObject() as GlobalPrivacySettingsBase;

  // Construct [AccountSetGlobalPrivacySettings] object.
  final returnValue = AccountSetGlobalPrivacySettings(
    settings: settings,
  );

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