CohortsRange.fromJson constructor

CohortsRange.fromJson(
  1. Map _json
)

Implementation

CohortsRange.fromJson(core.Map _json)
    : this(
        endOffset: _json.containsKey('endOffset')
            ? _json['endOffset'] as core.int
            : null,
        granularity: _json.containsKey('granularity')
            ? _json['granularity'] as core.String
            : null,
        startOffset: _json.containsKey('startOffset')
            ? _json['startOffset'] as core.int
            : null,
      );