PassportRequiredElement.fromJson constructor

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

Parse from a json

Implementation

PassportRequiredElement.fromJson(Map<String, dynamic> json) {
  this.suitableElements = List<PassportSuitableElement>.from(
      (json['suitable_elements'] ?? [])
          .map((item) =>
              PassportSuitableElement.fromJson(item ?? <String, dynamic>{}))
          .toList());
}