IdentityDocument class

An identity document.

Inheritance
Available Extensions

Constructors

IdentityDocument({required String number, Date? expiration_date, required DatedFile front_side, DatedFile? reverse_side, DatedFile? selfie, required List<DatedFile> translation, int? extra, int? clientId})
An identity document

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
expiration_date Date?
Document expiration date; may be null if not applicable.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
front_side DatedFile
Front side of the document.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
number String
Document number; 1-24 characters.
read / write
reverse_side DatedFile?
Reverse side of the document; only for driver license and identity card; may be null.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selfie DatedFile?
Selfie with the document; may be null.
read / write
translation List<DatedFile>
List of files containing a certified English translation of the document.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) IdentityDocument?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"identityDocument"