fromJson static method

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

Implementation

static VoiceState fromJson(Map<String, dynamic> json) {
  return VoiceState(
    guildId: json['guild_id'],
    channelId: json['channel_id'],
    userId: json['user_id'],
    member: Member.fromJson(json['member']),
    sessionId: json['session_id'],
    deaf: json['deaf'],
    mute: json['mute'],
    selfDeaf: json['self_deaf'],
    selfMute: json['self_mute'],
    selfStream: json['self_stream'],
    selfVideo: json['self_video'],
    suppress: json['suppress'],
  );
}