DatasetTrigger.fromJson constructor

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

Implementation

factory DatasetTrigger.fromJson(Map<String, dynamic> json) {
  return DatasetTrigger(
    dataset: json['dataset'] != null
        ? TriggeringDataset.fromJson(json['dataset'] as Map<String, dynamic>)
        : null,
    schedule: json['schedule'] != null
        ? Schedule.fromJson(json['schedule'] as Map<String, dynamic>)
        : null,
  );
}