EncryptedCredentials class abstract

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Annotations
  • @freezed

Constructors

EncryptedCredentials.new({@JsonKey(name: 'data') required String data, @JsonKey(name: 'hash') required String hash, @JsonKey(name: 'secret') required String secret})
Creates a new EncryptedCredentials object.
const
factory
EncryptedCredentials.fromJson(Map<String, dynamic> json)
Creates a new EncryptedCredentials object from json.
factory

Properties

copyWith → $EncryptedCredentialsCopyWith<EncryptedCredentials>
Create a copy of EncryptedCredentials with the given fields replaced by the non-null parameter values.
no setterinherited
data String
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes, and secrets required for EncryptedPassportElement decryption and authentication
no setterinherited
hash String
Base64-encoded data hash for data authentication
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this EncryptedCredentials to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited