GiftAuctionState.fromJson constructor

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

Parses a GiftAuctionState from TDLib JSON.

Implementation

factory GiftAuctionState.fromJson(Map<String, dynamic> json) =>
    GiftAuctionState(
      gift: _readObject(json['gift'], Gift.fromJson),
      state: _readObject(json['state'], AuctionState.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );