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