ChatBoost.fromJson constructor

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

Creates a ChatBoost object from a JSON object.

Implementation

factory ChatBoost.fromJson(Map<String, dynamic> json) {
  return ChatBoost(
    boostId: json['boost_id'],
    addDate: json['add_date'],
    expirationDate: json['expiration_date'],
    source: ChatBoostSource.fromJson(json['source']),
  );
}