PassportRequiredElement.fromJson constructor

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

Parse from a json

Implementation

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