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