toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  if (value != null) 'value': value,
  if (expression != null) 'expression': expression,
  if (useCurrentTimestamp) 'current': true,
};