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

30 lines
849 B
Dart

import 'package:robo_advisory/models/healthSteam.dart';
import 'package:robo_advisory/models/expenses.dart';
class Wallet {
String totalAssets;
String totalTurkishLiraPool;
String totalGoldInGram;
String totalGoldInTurkishLira;
String healthSteamDay;
List<HealthSteam> healthStream;
List<Expenses> expensesChart;
Wallet({
this.totalAssets,
this.totalTurkishLiraPool,
this.totalGoldInGram,
this.totalGoldInTurkishLira,
this.healthSteamDay,
this.healthStream,
this.expensesChart,
});
Wallet.fromMap(Map<String, dynamic> map)
: totalAssets = map["total_assets"],
totalTurkishLiraPool = map["total_turkish_lira"],
totalGoldInGram = map["total_gold_in_gram"],
totalGoldInTurkishLira = map["total_gold_in_turkish_lira"],
healthSteamDay = map["health_stream_day"];
}