fromJson static method

UserAuctionBid? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static UserAuctionBid? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return UserAuctionBid(
    starCount: (json['star_count'] as int?) ?? 0,
    bidDate: (json['bid_date'] as int?) ?? 0,
    nextBidStarCount: (json['next_bid_star_count'] as int?) ?? 0,
    ownerId: MessageSender.fromJson(tdMapFromJson(json['owner_id'])),
    wasReturned: (json['was_returned'] as bool?) ?? false,
  );
}