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