UserChatBoosts.fromJson constructor

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

Creates a UserChatBoosts object from a JSON object.

Implementation

factory UserChatBoosts.fromJson(Map<String, dynamic> json) {
  return UserChatBoosts(
    boosts: (json['boosts'] as List)
        .map((item) => ChatBoost.fromJson(item))
        .toList(),
  );
}