VoiceState.fromJson constructor

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

Implementation

factory VoiceState.fromJson(Map<String, dynamic> json) {
  return VoiceState(
    token: json['token'] as String,
    endpoint: json['endpoint'] as String,
    sessionId: json['sessionId'] as String,
  );
}