toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (componentStates != null) 'componentStates': componentStates!,
if (policyContentState != null)
'policyContentState': policyContentState!,
if (state != null) 'state': state!,
};