ChatAvailableReactionsSome.fromJson constructor

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

Parse from a json

Implementation

factory ChatAvailableReactionsSome.fromJson(Map<String, dynamic> json) =>
    ChatAvailableReactionsSome(
      reactions: List<ReactionType>.from((json['reactions'] ?? [])
          .map((item) => ReactionType.fromJson(item))
          .toList()),
    );