ChatPhotoSticker.fromJson constructor

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

Parses a ChatPhotoSticker from TDLib JSON.

Implementation

factory ChatPhotoSticker.fromJson(Map<String, dynamic> json) =>
    ChatPhotoSticker(
      type: _readObject(json['type'], ChatPhotoStickerType.fromJson),
      backgroundFill:
          _readObject(json['background_fill'], BackgroundFill.fromJson),
    );