fromJson static method
Implementation
static PassportSuitableElement? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PassportSuitableElement(
type: PassportElementType.fromJson(tdMapFromJson(json['type'])),
isSelfieRequired: (json['is_selfie_required'] as bool?) ?? false,
isTranslationRequired:
(json['is_translation_required'] as bool?) ?? false,
isNativeNameRequired: (json['is_native_name_required'] as bool?) ?? false,
);
}