Expression.fromJson constructor

Expression.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Expression.fromJson(Map<String, dynamic> data) =>
    switch (data[keyType]) {
      BooleanExpression.expressionType => BooleanExpression.fromJson(data),
      ChoiceExpression.expressionType => ChoiceExpression.fromJson(data),
      NotExpression.expressionType => NotExpression.fromJson(data),
      _ => throw UnknownJsonTypeError(data[keyType])
    };