ChatBoostUpdated.fromJson constructor

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

Creates a ChatBoostUpdated object from a JSON object.

Implementation

factory ChatBoostUpdated.fromJson(Map<String, dynamic> json) {
  return ChatBoostUpdated(
    chat: Chat.fromJson(json['chat']),
    boost: ChatBoost.fromJson(json['boost']),
  );
}