DatasetSummary.fromJson constructor
DatasetSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DatasetSummary.fromJson(Map<String, dynamic> json) {
return DatasetSummary(
actions: (json['actions'] as List?)
?.whereNotNull()
.map((e) => DatasetActionSummary.fromJson(e as Map<String, dynamic>))
.toList(),
creationTime: timeStampFromJson(json['creationTime']),
datasetName: json['datasetName'] as String?,
lastUpdateTime: timeStampFromJson(json['lastUpdateTime']),
status: (json['status'] as String?)?.toDatasetStatus(),
triggers: (json['triggers'] as List?)
?.whereNotNull()
.map((e) => DatasetTrigger.fromJson(e as Map<String, dynamic>))
.toList(),
);
}