Cohort.fromJson constructor

Cohort.fromJson(
  1. Map json_
)

Implementation

Cohort.fromJson(core.Map json_)
    : this(
        dateRange: json_.containsKey('dateRange')
            ? DateRange.fromJson(
                json_['dateRange'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );