DynamicSegment.fromJson constructor

DynamicSegment.fromJson(
  1. Map json_
)

Implementation

DynamicSegment.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sessionSegment: json_.containsKey('sessionSegment')
            ? SegmentDefinition.fromJson(json_['sessionSegment']
                as core.Map<core.String, core.dynamic>)
            : null,
        userSegment: json_.containsKey('userSegment')
            ? SegmentDefinition.fromJson(
                json_['userSegment'] as core.Map<core.String, core.dynamic>)
            : null,
      );