User.fromJson constructor
Implementation
factory User.fromJson(Map<String, Object?> json) {
return User(
accountId: json[r'accountId'] as String?,
accountType: json[r'accountType'] != null
? UserAccountType.fromValue(json[r'accountType']! as String)
: null,
active: json[r'active'] as bool? ?? false,
applicationRoles: json[r'applicationRoles'] != null
? SimpleListWrapperApplicationRole.fromJson(
json[r'applicationRoles']! as Map<String, Object?>)
: null,
avatarUrls: json[r'avatarUrls'] != null
? AvatarUrlsBean.fromJson(
json[r'avatarUrls']! as Map<String, Object?>)
: null,
displayName: json[r'displayName'] as String?,
emailAddress: json[r'emailAddress'] as String?,
expand: json[r'expand'] as String?,
groups: json[r'groups'] != null
? SimpleListWrapperGroupName.fromJson(
json[r'groups']! as Map<String, Object?>)
: null,
key: json[r'key'] as String?,
locale: json[r'locale'] as String?,
name: json[r'name'] as String?,
self: json[r'self'] as String?,
timeZone: json[r'timeZone'] as String?,
);
}