Data.fromJson constructor
Implementation
Data.fromJson(Map<String, dynamic> json) {
clientId = json['client_id'];
enableClassical = json['enable_classical'];
allowedUsernameTypes = json['allowed_username_types'].cast<String>();
// if (json['single_legged_settings'] != null) {
// singleLeggedSettings = <Null>[];
// json['single_legged_settings'].forEach((v) {
// singleLeggedSettings!.add(new Null.fromJson(v));
// });
// }
displaySettings = json['display_settings'] != null
? DisplaySettings.fromJson(json['display_settings'])
: null;
settings = json['settings'] != null
? Settings.fromJson(json['settings'])
: null;
if (json['login_providers'] != null) {
loginProviders = <LoginProviders>[];
json['login_providers'].forEach((v) {
loginProviders!.add(LoginProviders.fromJson(v));
});
}
}