Robo-advisory-dart/lib/models/healthSteam.dart
2022-09-11 15:39:48 +01:00

23 lines
669 B
Dart

class HealthSteam {
String type;
int valueInPercentage;
String goldInGram;
String goldPriceInTurkishLira;
String oneGramGoldPriceInLira;
HealthSteam({
required this.type,
required this.valueInPercentage,
required this.goldInGram,
required this.goldPriceInTurkishLira,
required 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"];
}