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