@override Map<String, dynamic> toJson() { return { 'type': type.value, 'items': _items.map((e) => e.toJson()).toList(), }; }