@override Object toJson() => { 'indexEndpoint': indexEndpoint, if (deployedIndex != null) 'deployedIndex': deployedIndex!.toJson(), };