CountriesStates
public struct CountriesStates : Codable, Equatable
Struct representing a container for countries with states values.
This struct decodes the countries and states from the data received from the API in a different manner than the usual decoding.
This is due to being the Country
and Country.State
model being different from the JSON structure returned by the server API.
This struct maps the values from that JSON structure to be compatible to the model structure of the Country
and Country.State
.