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