PagedDTOServiceDeskDTO.fromJson constructor
Implementation
factory PagedDTOServiceDeskDTO.fromJson(Map<String, Object?> json) {
return PagedDTOServiceDeskDTO(
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) => ServiceDeskDTO.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}