SentGiftRegular.fromJson constructor

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

Parses a SentGiftRegular from TDLib JSON.

Implementation

factory SentGiftRegular.fromJson(Map<String, dynamic> json) =>
    SentGiftRegular(gift: _readObject(json['gift'], Gift.fromJson));