PassportAuthorizationForm.fromJson constructor

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

Parse from a json

Implementation

factory PassportAuthorizationForm.fromJson(Map<String, dynamic> json) =>
    PassportAuthorizationForm(
      id: json['id'],
      requiredElements: List<PassportRequiredElement>.from(
          (json['required_elements'] ?? [])
              .map((item) => PassportRequiredElement.fromJson(item))
              .toList()),
      privacyPolicyUrl: json['privacy_policy_url'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );