PhoneNumberAuthenticationSettings.fromJson constructor
Parses a PhoneNumberAuthenticationSettings from TDLib JSON.
Implementation
factory PhoneNumberAuthenticationSettings.fromJson(
Map<String, dynamic> json,
) => PhoneNumberAuthenticationSettings(
allowFlashCall: _readBool(json['allow_flash_call']),
allowMissedCall: _readBool(json['allow_missed_call']),
isCurrentPhoneNumber: _readBool(json['is_current_phone_number']),
hasUnknownPhoneNumber: _readBool(json['has_unknown_phone_number']),
allowSmsRetrieverApi: _readBool(json['allow_sms_retriever_api']),
firebaseAuthenticationSettings: _readOptional(
json['firebase_authentication_settings'],
FirebaseAuthenticationSettings.fromJson,
),
authenticationTokens: _readList<String>(
json['authentication_tokens'],
_readString,
),
);