fromJson static method
Implementation
static SubCondition fromJson(Map<String, dynamic> json) => SubCondition(
conditionType: FConditionType.fromJson(
json['condition_type'],
),
firstParameter: ConditionParameter.fromJson(
json['first_parameter'],
),
secondParameter: ConditionParameter.fromJson(
json['second_parameter'],
),
operator: EnumToString.fromString(
SubConditionOperator.values,
json['operator'],
)!,
subConditions: json['sub_conditions'] != null
? (json['sub_conditions'] as List<dynamic>)
.map((e) => SubCondition.fromJson(e))
.toList()
: [],
);