AdminGetUserResponse.fromJson constructor
AdminGetUserResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AdminGetUserResponse.fromJson(Map<String, dynamic> json) {
return AdminGetUserResponse(
username: json['Username'] as String,
enabled: json['Enabled'] as bool?,
mFAOptions: (json['MFAOptions'] as List?)
?.whereNotNull()
.map((e) => MFAOptionType.fromJson(e as Map<String, dynamic>))
.toList(),
preferredMfaSetting: json['PreferredMfaSetting'] as String?,
userAttributes: (json['UserAttributes'] as List?)
?.whereNotNull()
.map((e) => AttributeType.fromJson(e as Map<String, dynamic>))
.toList(),
userCreateDate: timeStampFromJson(json['UserCreateDate']),
userLastModifiedDate: timeStampFromJson(json['UserLastModifiedDate']),
userMFASettingList: (json['UserMFASettingList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
userStatus: (json['UserStatus'] as String?)?.toUserStatusType(),
);
}