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