toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final roomId = this.roomId;
  final servers = this.servers;
  return {
    if (roomId != null) 'room_id': roomId,
    if (servers != null) 'servers': servers.map((v) => v).toList(),
  };
}