fromJson static method

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

Implementation

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