toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (stringValue case final stringValue?) 'stringValue': stringValue,
  if (numericValue case final numericValue?)
    'numericValue': encodeDouble(numericValue),
  'operation': operation.toJson(),
};