CubeMessageReactions.fromJson constructor

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

Implementation

CubeMessageReactions.fromJson(Map<String, dynamic> json) {
  own = List.of(json['own']).map((reaction) => reaction as String).toSet();
  total = Map.of(json['total'])
      .map((key, value) => MapEntry(key as String, value as int));
}