PassportSuitableElement.fromJson constructor

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

Parse from a json

Implementation

factory PassportSuitableElement.fromJson(Map<String, dynamic> json) =>
    PassportSuitableElement(
      type: PassportElementType.fromJson(json['type']),
      isSelfieRequired: json['is_selfie_required'],
      isTranslationRequired: json['is_translation_required'],
      isNativeNameRequired: json['is_native_name_required'],
    );