PagedDTOAssetsWorkspaceDTO.fromJson constructor
Implementation
factory PagedDTOAssetsWorkspaceDTO.fromJson(Map<String, Object?> json) {
return PagedDTOAssetsWorkspaceDTO(
expands: (json[r'_expands'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
links: json[r'_links'] != null
? PagedLinkDTO.fromJson(json[r'_links']! as Map<String, Object?>)
: null,
isLastPage: json[r'isLastPage'] as bool? ?? false,
limit: (json[r'limit'] as num?)?.toInt(),
size: (json[r'size'] as num?)?.toInt(),
start: (json[r'start'] as num?)?.toInt(),
values: (json[r'values'] as List<Object?>?)
?.map((i) => AssetsWorkspaceDTO.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}