@override Map<String, Object?> toMap() { return { ...super.toMap(), 'oneOf': oneOf.map((e) => {'const': e.$const, 'title': e.title}).toList(), }; }