jsonMap method

  1. @override
Map<String, Object> jsonMap()

Implementation

@override
Map<String, Object> jsonMap() {
  Map<String, Object> map = new Map<String, Object>()
    ..['host'] = host
    ..['port'] = port
    ..['name'] = name
    ..['tokens'] = tokens
    ..['celtVersions'] = celtVersions
    ..['opus'] = opus;
  if (password != null) {
    map['password'] = password!;
  }
  if (incomingAudioStreamTimeout != null) {
    map['incomingAudioStreamTimeout'] = incomingAudioStreamTimeout!;
  }
  return map;
}