PassportElements.fromJson constructor

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

Parse from a json

Implementation

factory PassportElements.fromJson(Map<String, dynamic> json) => PassportElements(
  elements: List<PassportElement>.from((json['elements'] ?? []).map((item) => PassportElement.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);