AuthorizationStateWaitEmailCode.fromJson constructor
Parses a AuthorizationStateWaitEmailCode from TDLib JSON.
Implementation
factory AuthorizationStateWaitEmailCode.fromJson(Map<String, dynamic> json) =>
AuthorizationStateWaitEmailCode(
allowAppleId: _readBool(json['allow_apple_id']),
allowGoogleId: _readBool(json['allow_google_id']),
codeInfo: _readObject(
json['code_info'],
EmailAddressAuthenticationCodeInfo.fromJson,
),
emailAddressResetState: _readOptional(
json['email_address_reset_state'],
EmailAddressResetState.fromJson,
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);