CohortSpec.fromJson constructor
CohortSpec.fromJson(
- Map json_
Implementation
CohortSpec.fromJson(core.Map json_)
: this(
cohortReportSettings: json_.containsKey('cohortReportSettings')
? CohortReportSettings.fromJson(json_['cohortReportSettings']
as core.Map<core.String, core.dynamic>)
: null,
cohorts: json_.containsKey('cohorts')
? (json_['cohorts'] as core.List)
.map((value) => Cohort.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
cohortsRange: json_.containsKey('cohortsRange')
? CohortsRange.fromJson(
json_['cohortsRange'] as core.Map<core.String, core.dynamic>)
: null,
);