Peer.fromJson constructor

Peer.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory Peer.fromJson(Map<String, dynamic> map) {
  return Peer(
    address: map['address'] ?? '',
    emojiReactions: map['emojiReactions'] != null
        ? EmojiReaction.fromJson(map['emojiReactions'])
        : null,
  );
}