@Override
    public final Map<String, String> toProperties() {
        final DescriptorProperties properties = new DescriptorProperties();
        properties.putString(FormatDescriptorValidator.FORMAT_TYPE, type);
        properties.putInt(FormatDescriptorValidator.FORMAT_PROPERTY_VERSION, version);
        properties.putProperties(toFormatProperties());
        return properties.asMap();
    }
Constructs a {@link FormatDescriptor}.

@param type string that identifies this format
@param version property version for backwards compatibility
inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/base/FormatDescriptor.java