toJson method
Implementation
Map<String, dynamic> toJson() => {
'loginType': loginType.name,
'account': account,
'code': code,
'supportAuthTypeValues': supportAuthTypes.map((e) => e.name).toList(),
"loginPageConfig": loginPageConfig,
"socialLoginPrompt": socialLoginPrompt?.name,
};