SpaceWatchArray.fromJson constructor
Implementation
factory SpaceWatchArray.fromJson(Map<String, Object?> json) {
return SpaceWatchArray(
results: (json[r'results'] as List<Object?>?)
?.map((i) =>
SpaceWatch.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
start: (json[r'start'] as num?)?.toInt() ?? 0,
limit: (json[r'limit'] as num?)?.toInt() ?? 0,
size: (json[r'size'] as num?)?.toInt() ?? 0,
links: json[r'_links'] != null
? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
: null,
);
}