fromJson static method

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

Implementation

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

  return AuctionBid(
    starCount: (json['star_count'] as int?) ?? 0,
    bidDate: (json['bid_date'] as int?) ?? 0,
    position: (json['position'] as int?) ?? 0,
  );
}