Convert AudioDevice to JSON Map
Map<String, dynamic> toMap() { return { 'id': id, 'type': type.toJsonString(), }; }