AdminPeer.fromJson constructor

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

Implementation

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