ExprIfThenElse.fromJson constructor

ExprIfThenElse.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ExprIfThenElse.fromJson(Map<String, Object?> json) {
  return ExprIfThenElse(
    cond: Expr.fromJson(json['if'] as Map<String, Object?>),
    then: Expr.fromJson(json['then'] as Map<String, Object?>),
    otherwise: Expr.fromJson(json['else'] as Map<String, Object?>),
  );
}