fromJson static method

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

Implementation

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

  return GiftAuctionState(
    gift: Gift.fromJson(tdMapFromJson(json['gift'])),
    state: AuctionState.fromJson(tdMapFromJson(json['state'])),
  );
}