BulkUserLookup.fromJson constructor
Implementation
factory BulkUserLookup.fromJson(Map<String, Object?> json) {
return BulkUserLookup(
type: BulkUserLookupType.fromValue(json[r'type'] as String? ?? ''),
username: json[r'username'] as String?,
userKey: json[r'userKey'] as String?,
accountId: json[r'accountId'] as String? ?? '',
accountType: json[r'accountType'] as String? ?? '',
email: json[r'email'] as String? ?? '',
publicName: json[r'publicName'] as String? ?? '',
profilePicture: Icon.fromJson(
json[r'profilePicture'] as Map<String, Object?>? ?? const {}),
displayName: json[r'displayName'] as String? ?? '',
timeZone: json[r'timeZone'] as String?,
isExternalCollaborator: json[r'isExternalCollaborator'] as bool? ?? false,
operations: (json[r'operations'] as List<Object?>?)
?.map((i) => OperationCheckResult.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
details: json[r'details'] != null
? UserDetails.fromJson(json[r'details']! as Map<String, Object?>)
: null,
personalSpace: json[r'personalSpace'] != null
? Space.fromJson(json[r'personalSpace']! as Map<String, Object?>)
: null,
expandable: BulkUserLookupExpandable.fromJson(
json[r'_expandable'] as Map<String, Object?>? ?? const {}),
links: GenericLinks.fromJson(
json[r'_links'] as Map<String, Object?>? ?? const {}),
);
}