factory Price.fromJson(Map<String, Object?> json) => Price( currency: inttegro_money.Currency.fromJson(json["currency"]), value: (json["value"] as num).toInt(), );