fromJson static method

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

Implementation

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

  return AuctionRound(
    number: (json['number'] as int?) ?? 0,
    duration: (json['duration'] as int?) ?? 0,
    extendTime: (json['extend_time'] as int?) ?? 0,
    topWinnerCount: (json['top_winner_count'] as int?) ?? 0,
  );
}