GetDatasetContentResponse.fromJson constructor

GetDatasetContentResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetDatasetContentResponse.fromJson(Map<String, dynamic> json) {
  return GetDatasetContentResponse(
    entries: (json['entries'] as List?)
        ?.whereNotNull()
        .map((e) => DatasetEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    status: json['status'] != null
        ? DatasetContentStatus.fromJson(
            json['status'] as Map<String, dynamic>)
        : null,
    timestamp: timeStampFromJson(json['timestamp']),
  );
}