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