CohortGroup.fromJson constructor

CohortGroup.fromJson(
  1. Map json_
)

Implementation

CohortGroup.fromJson(core.Map json_)
    : this(
        cohorts: json_.containsKey('cohorts')
            ? (json_['cohorts'] as core.List)
                .map((value) => Cohort.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        lifetimeValue: json_.containsKey('lifetimeValue')
            ? json_['lifetimeValue'] as core.bool
            : null,
      );