toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (value.isNotDefault) 'value': encodeDouble(value),
  'timestamp': ?timestamp?.toJson(),
  if (attachments.isNotDefault)
    'attachments': [for (final i in attachments) i.toJson()],
};