PhoneNumberAuthenticationSettings.fromJson constructor

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

Parse from a json

Implementation

factory PhoneNumberAuthenticationSettings.fromJson(Map<String, dynamic> json) => PhoneNumberAuthenticationSettings(
  allowFlashCall: json['allow_flash_call'],
  allowMissedCall: json['allow_missed_call'],
  isCurrentPhoneNumber: json['is_current_phone_number'],
  allowSmsRetrieverApi: json['allow_sms_retriever_api'],
  authenticationTokens: List<String>.from((json['authentication_tokens'] ?? []).map((item) => item).toList()),
);