toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'start_date': startDate,
      'end_date': endDate,
      'min_bid': minBid,
      'bid_levels': bidLevels.map((item) => item.toJson()).toList(),
      'top_bidder_user_ids': topBidderUserIds.map((item) => item).toList(),
      'rounds': rounds.map((item) => item.toJson()).toList(),
      'current_round_end_date': currentRoundEndDate,
      'current_round_number': currentRoundNumber,
      'total_round_count': totalRoundCount,
      'distributed_item_count': distributedItemCount,
      'left_item_count': leftItemCount,
      'acquired_item_count': acquiredItemCount,
      'user_bid': userBid?.toJson(),
      '@type': constructor,
    };