PassportType enum

This object represents a Telegram Passport element containing the user's personal details.

Inheritance

Constructors

PassportType(String value)
Constructs a new PassportType.
const

Values

passport → const PassportType

Passport of the user

const PassportType("passport")
driverLicense → const PassportType

Driver's license of the user

const PassportType("driver_license")
identityCard → const PassportType

Identity card of the user

const PassportType("identity_card")
internalPassport → const PassportType

Internal passport of the user

const PassportType("internal_passport")
address → const PassportType

Address of the user

const PassportType("address")
utilityBill → const PassportType

Utility bill of the user

const PassportType("utility_bill")
bankStatement → const PassportType

Bank statement of the user

const PassportType("bank_statement")
rentalAgreement → const PassportType

Rental agreement of the user

const PassportType("rental_agreement")
passportRegistration → const PassportType

Passport registration page of the user

const PassportType("passport_registration")
temporaryRegistration → const PassportType

Temporary registration page of the user

const PassportType("temporary_registration")
phoneNumber → const PassportType

Phone number of the user

const PassportType("phone_number")
email → const PassportType

Email of the user

const PassportType("email")
personalDetails → const PassportType

Personal Details of the user

const PassportType("personal_details")

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The value of this enum.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts this PassportType to a String.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String value) PassportType
Constructs a new PassportType from a String.

Constants

values → const List<PassportType>
A constant List of the values in this enum, in order of their declaration.