toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final expression = this.expression;
  return {
    if (expression != null) 'expression': expression,
  };
}