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