fromJson static method
Implementation
static PhoneNumberAuthenticationSettings? fromJson(
Map<String, dynamic>? json,
) {
if (json == null) {
return null;
}
return PhoneNumberAuthenticationSettings(
allowFlashCall: (json['allow_flash_call'] as bool?) ?? false,
allowMissedCall: (json['allow_missed_call'] as bool?) ?? false,
isCurrentPhoneNumber: (json['is_current_phone_number'] as bool?) ?? false,
hasUnknownPhoneNumber:
(json['has_unknown_phone_number'] as bool?) ?? false,
allowSmsRetrieverApi: (json['allow_sms_retriever_api'] as bool?) ?? false,
firebaseAuthenticationSettings: FirebaseAuthenticationSettings.fromJson(
tdMapFromJson(json['firebase_authentication_settings']),
),
authenticationTokens: List<String>.from(
tdListFromJson(
json['authentication_tokens'],
).map((item) => (item as dynamic)?.toString() ?? ''),
),
);
}