Robo-advisory-dart/lib/models/healthSteam.dart

23 lines
624 B
Dart

class HealthSteam {
String type;
int valueInPercentage;
String goldInGram;
String goldPriceInTurkishLira;
String oneGramGoldPriceInLira;
HealthSteam({
this.type,
this.valueInPercentage,
this.goldInGram,
this.goldPriceInTurkishLira,
this.oneGramGoldPriceInLira,
});
HealthSteam.fromJson(Map<dynamic, dynamic> map)
: type = map["type"],
valueInPercentage = map["value_in_percentage"],
goldInGram = map["gold_in_gram"],
goldPriceInTurkishLira = map["gold_price_in_turkish_lira"],
oneGramGoldPriceInLira = map["one_gram_gold_price_in_turkish_lira"];
}