toJson method
Implementation
Map<String, dynamic> toJson() {
final dimensionName = this.dimensionName;
final operator = this.operator;
return {
'dimensionName': dimensionName,
if (operator != null) 'operator': operator.toValue(),
};
}