fromJson static method
Inherited by: AuctionStateActive AuctionStateFinished
Implementation
static AuctionStateFinished? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AuctionStateFinished(
startDate: (json['start_date'] as int?) ?? 0,
endDate: (json['end_date'] as int?) ?? 0,
averagePrice: (json['average_price'] as int?) ?? 0,
acquiredItemCount: (json['acquired_item_count'] as int?) ?? 0,
telegramListedItemCount:
(json['telegram_listed_item_count'] as int?) ?? 0,
fragmentListedItemCount:
(json['fragment_listed_item_count'] as int?) ?? 0,
fragmentUrl: (json['fragment_url'] as String?) ?? '',
);
}