ChatBoostRemoved.fromJson constructor

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

Creates a ChatBoostRemoved object from a JSON object.

Implementation

factory ChatBoostRemoved.fromJson(Map<String, dynamic> json) {
  return ChatBoostRemoved(
    chat: Chat.fromJson(json['chat']),
    boostId: json['boost_id'],
    removeDate: json['remove_date'],
    source: ChatBoostSource.fromJson(json['source']),
  );
}