Reaction.fromJson constructor

Reaction.fromJson(
  1. Map json_
)

Implementation

Reaction.fromJson(core.Map json_)
    : this(
        emoji: json_.containsKey('emoji')
            ? Emoji.fromJson(
                json_['emoji'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        user: json_.containsKey('user')
            ? User.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
      );