UserAnonymous.fromJson constructor
Implementation
factory UserAnonymous.fromJson(Map<String, Object?> json) {
return UserAnonymous(
type: json[r'type'] as String? ?? '',
profilePicture: Icon.fromJson(
json[r'profilePicture'] as Map<String, Object?>? ?? const {}),
displayName: json[r'displayName'] as String? ?? '',
operations: (json[r'operations'] as List<Object?>?)
?.map((i) => OperationCheckResult.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
isExternalCollaborator: json[r'isExternalCollaborator'] as bool? ?? false,
expandable: json[r'_expandable'] != null
? UserAnonymousExpandable.fromJson(
json[r'_expandable']! as Map<String, Object?>)
: null,
links: GenericLinks.fromJson(
json[r'_links'] as Map<String, Object?>? ?? const {}),
);
}