2023-12-02 09:42:00 +00:00
|
|
|
class AssetInfo {
|
|
|
|
final String assetId;
|
|
|
|
final int currentSupply;
|
|
|
|
final int decimalPoint;
|
|
|
|
final String fullName;
|
|
|
|
final bool hiddenSupply;
|
|
|
|
final String metaInfo;
|
|
|
|
final String owner;
|
|
|
|
final String ticker;
|
|
|
|
final int totalMaxSupply;
|
|
|
|
|
|
|
|
AssetInfo(
|
|
|
|
{required this.assetId,
|
|
|
|
required this.currentSupply,
|
|
|
|
required this.decimalPoint,
|
|
|
|
required this.fullName,
|
|
|
|
required this.hiddenSupply,
|
|
|
|
required this.metaInfo,
|
|
|
|
required this.owner,
|
|
|
|
required this.ticker,
|
|
|
|
required this.totalMaxSupply});
|
|
|
|
|
|
|
|
factory AssetInfo.fromJson(Map<String, dynamic> json) => AssetInfo(
|
2024-03-10 02:51:30 +00:00
|
|
|
assetId: json['asset_id'] as String? ?? '',
|
|
|
|
currentSupply: json['current_supply'] as int? ?? 0,
|
|
|
|
decimalPoint: json['decimal_point'] as int? ?? 0,
|
|
|
|
fullName: json['full_name'] as String? ?? '',
|
2023-12-02 09:42:00 +00:00
|
|
|
hiddenSupply: json['hidden_supply'] as bool,
|
2024-03-10 02:51:30 +00:00
|
|
|
metaInfo: json['meta_info'] as String? ?? '',
|
|
|
|
owner: json['owner'] as String? ?? '',
|
|
|
|
ticker: json['ticker'] as String? ?? '',
|
|
|
|
totalMaxSupply: json['total_max_supply'] as int? ?? 0,
|
2023-12-02 09:42:00 +00:00
|
|
|
);
|
|
|
|
}
|