Builds a DataPart instance with the configured properties.
A new DataPart instance
Whether to validate required properties
if validation fails