Brewery.fromJson constructor
Brewery.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Brewery.fromJson(Map<String, dynamic> json) {
return Brewery(
id: json['id'],
name: json['name'],
breweryType: json['brewery_type'],
street: json['street'],
address_2: json['address_2'],
address_3: json['address_3'],
city: json['city'],
state: json['state'],
countyProvince: json['county_province'],
postalCode: json['postal_code'],
country: json['country'],
longitude: json['longitude'],
latitude: json['latitude'],
phone: json['phone'],
websiteUrl: json['website_url'],
updatedAt: json['updated_at'],
createdAt: json['created_at'],
);
}