PassportElementError.fromJson constructor

PassportElementError.fromJson(
  1. Map<String, dynamic> json
)

Parses a PassportElementError from TDLib JSON.

Implementation

factory PassportElementError.fromJson(Map<String, dynamic> json) =>
    PassportElementError(
      type: _readObject(json['type'], PassportElementType.fromJson),
      message: _readString(json['message']),
      source: _readObject(
        json['source'],
        PassportElementErrorSource.fromJson,
      ),
    );