fromJson static method

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

Implementation

static VoiceServerUpdateEvent fromJson(Map<String, dynamic> json) {
  return VoiceServerUpdateEvent(
    token: json['token'],
    guildId: json['guild_id'],
    endpoint: json['endpoint'],
  );
}