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,
        dimension: _json.containsKey('dimension')
            ? _json['dimension'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );