StartCondition.fromJson constructor

StartCondition.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StartCondition.fromJson(Map<String, dynamic> json) {
  return StartCondition(
    description: json['Description'] as String?,
    eventStartCondition: json['EventStartCondition'] != null
        ? EventStartCondition.fromJson(
            json['EventStartCondition'] as Map<String, dynamic>)
        : null,
    segmentStartCondition: json['SegmentStartCondition'] != null
        ? SegmentCondition.fromJson(
            json['SegmentStartCondition'] as Map<String, dynamic>)
        : null,
  );
}