PassportSuitableElement.fromJson constructor
Parses a PassportSuitableElement from TDLib JSON.
Implementation
factory PassportSuitableElement.fromJson(Map<String, dynamic> json) =>
PassportSuitableElement(
type: _readObject(json['type'], PassportElementType.fromJson),
isSelfieRequired: _readBool(json['is_selfie_required']),
isTranslationRequired: _readBool(json['is_translation_required']),
isNativeNameRequired: _readBool(json['is_native_name_required']),
);