User.fromJson constructor
Implementation
factory User.fromJson(Map<String, dynamic> json) {
return User(
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
emailAddress: json['EmailAddress'] as String?,
givenName: json['GivenName'] as String?,
id: json['Id'] as String?,
locale: (json['Locale'] as String?)?.toLocaleType(),
modifiedTimestamp: timeStampFromJson(json['ModifiedTimestamp']),
organizationId: json['OrganizationId'] as String?,
recycleBinFolderId: json['RecycleBinFolderId'] as String?,
rootFolderId: json['RootFolderId'] as String?,
status: (json['Status'] as String?)?.toUserStatusType(),
storage: json['Storage'] != null
? UserStorageMetadata.fromJson(
json['Storage'] as Map<String, dynamic>)
: null,
surname: json['Surname'] as String?,
timeZoneId: json['TimeZoneId'] as String?,
type: (json['Type'] as String?)?.toUserType(),
username: json['Username'] as String?,
);
}