core.Map<core.String, core.dynamic> toJson() => { if (sampleTime != null) 'sampleTime': sampleTime!.toJson(), if (value != null) 'value': value!, };