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