@override Object toJson() => { if (endpoint.isNotDefault) 'endpoint': endpoint, if (version.isNotDefault) 'version': version, };