SimpleCondition.fromJson constructor

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

Implementation

factory SimpleCondition.fromJson(Map<String, dynamic> json) {
  return SimpleCondition(
    eventCondition: json['EventCondition'] != null
        ? EventCondition.fromJson(
            json['EventCondition'] as Map<String, dynamic>)
        : null,
    segmentCondition: json['SegmentCondition'] != null
        ? SegmentCondition.fromJson(
            json['SegmentCondition'] as Map<String, dynamic>)
        : null,
    segmentDimensions: json['segmentDimensions'] != null
        ? SegmentDimensions.fromJson(
            json['segmentDimensions'] as Map<String, dynamic>)
        : null,
  );
}