fromJson static method

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

Implementation

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

  return GiftAuction(
    id: (json['id'] as String?) ?? '',
    giftsPerRound: (json['gifts_per_round'] as int?) ?? 0,
    startDate: (json['start_date'] as int?) ?? 0,
  );
}