// City represents a city.
type City struct {
Name string `firestore:"name,omitempty"`
State string `firestore:"state,omitempty"`
Country string `firestore:"country,omitempty"`
Capital bool `firestore:"capital,omitempty"`
Population int64 `firestore:"population,omitempty"`
Regions []string `firestore:"regions,omitempty"`
}
public City() {
// Must have a public no-argument constructor
}
// Initialize all fields of a city
public City(
String name,
String state,
String country,
Boolean capital,
Long population,
List<String> regions) {
this.name = name;
this.state = state;
this.country = country;
this.capital = capital;
this.population = population;
this.regions = regions;
}