PassportElementErrorDataField class

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.

https://core.telegram.org/bots/api#passportelementerrordatafield

Implemented types
Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

PassportElementErrorDataField({EncryptedPassportElementSource? source = EncryptedPassportElementSource.data, EncryptedPassportElementType? type, String? fieldName, String? dataHash, String? message})
PassportElementErrorDataField.fromJson(Map<String, dynamic> json)
factory

Properties

dataHash ↔ String?
Base64-encoded data hash.
getter/setter pair
fieldName ↔ String?
Name of the data field which has the error.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
message ↔ String?
Error message.
getter/setter pairoverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source ↔ EncryptedPassportElementSource?
Error source, must be data.
getter/setter pairoverride
type ↔ EncryptedPassportElementType?
The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.
getter/setter pairoverride

Methods

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

Operators

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