MessageSticker.fromJson constructor

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

Parse from a json

Implementation

factory MessageSticker.fromJson(Map<String, dynamic> json) => MessageSticker(
      sticker: Sticker.fromJson(json['sticker']),
      isPremium: json['is_premium'],
    );