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