endpoints static method

Map<String, ApiEndpoint> endpoints()

Implementation

static Map<String, ApiEndpoint> endpoints() => {
      "getAllCountries": CountryStateCityApi(
        method: "GET",
        url: "/v1/countries",
      ),
      "getCountryDetails": CountryStateCityApi(
        method: "GET",
        url: "/v1/countries/{country_code}",
      ),
      "getStatesOfCountry": CountryStateCityApi(
        method: "GET",
        url: "/v1/countries/{country_code}/states",
      ),
      "getCitiesOfState": CountryStateCityApi(
        method: "GET",
        url: "/v1/countries/{country_code}/states/{state_code}/cities",
      ),
    };