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.
- Inheritance
-
- Object
- PassportElementError
- PassportElementErrorDataField
Constructors
- PassportElementErrorDataField({required String source, required PassportType type, required String message, required String fieldName, required String dataHash})
-
Constructs a PassportElementErrorDataField object
const
-
PassportElementErrorDataField.fromJson(Map<
String, dynamic> json) -
Creates a PassportElementErrorDataField object from JSON object
factory
Properties
- dataHash → String
-
Base64-encoded data hash
final
- fieldName → String
-
Name of the data field which has the error
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Error message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Error source
finalinherited
- type → PassportType
-
The section of the user's Telegram Passport which has the error
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Creates a PassportElementErrorDataField object from JSON object
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited