GiftAuction.fromJson constructor

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

Parses a GiftAuction from TDLib JSON.

Implementation

factory GiftAuction.fromJson(Map<String, dynamic> json) => GiftAuction(
  id: _readString(json['id']),
  giftsPerRound: _readInt(json['gifts_per_round']),
  startDate: _readInt(json['start_date']),
);