History.fromJson constructor
History.fromJson(
- Map<String, dynamic> json
)
Implementation
History.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) id = json["id"];
if (json["publicName"] is String) publicName = json["publicName"];
if (json["proIdOwner"] is int) proIdOwner = json["proIdOwner"];
if (json["createdAt"] is int) createdAt = json["createdAt"];
if (json["beerName"] is String) beerName = json["beerName"];
if (json["quantity"] is int) quantity = json["quantity"];
if (json["amount"] is double) amount = json["amount"];
if (json["currency"] is String) currency = json["currency"];
}