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