SequenceSegment.fromJson constructor

SequenceSegment.fromJson(
  1. Map json_
)

Implementation

SequenceSegment.fromJson(core.Map json_)
    : this(
        firstStepShouldMatchFirstHit:
            json_.containsKey('firstStepShouldMatchFirstHit')
                ? json_['firstStepShouldMatchFirstHit'] as core.bool
                : null,
        segmentSequenceSteps: json_.containsKey('segmentSequenceSteps')
            ? (json_['segmentSequenceSteps'] as core.List)
                .map((value) => SegmentSequenceStep.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );