PhoneNumberAuthenticationSettings.fromMap constructor

PhoneNumberAuthenticationSettings.fromMap(
  1. Map<String, dynamic> map
)

Implementation

PhoneNumberAuthenticationSettings.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  allow_flash_call = map['allow_flash_call'];
  allow_missed_call = map['allow_missed_call'];
  is_current_phone_number = map['is_current_phone_number'];
  allow_sms_retriever_api = map['allow_sms_retriever_api'];
  if (map['authentication_tokens'] != null) {
    authentication_tokens = [];
    for (var someValue in map['authentication_tokens']) {
      authentication_tokens?.add(someValue);
    }
  }
}