func UnMarshalToCommonMetadata(metadataString string) (Metadata, error) {
	var result Metadata
	if metadataString != "" {
		err := json.Unmarshal([]byte(metadataString), &result)
		if err != nil {
			return nil, err
		}
	}

	return result, nil
}
// UnMarshalToCommonMetadata unmarshals string to common metadata.
UnMarshalToCommonMetadata unmarshals string to common metadata.
// UnMarshalToCommonMetadata unmarshals string to common metadata .
func UnMarshalToCommonMetadata(metadataString string) (Metadata, error) {
	var result Metadata
	if metadataString != "" {
		err := json.Unmarshal([]byte(metadataString), &result)
		if err != nil {
			return nil, err
		}
	}
	return result, nil
}
func UnMarshalToCommonMetadata ( metadataString string ) ( Metadata , error ) { var result Metadata if metadataString != " " { err := json . Unmarshal ( [ ] byte ( metadataString ) , & result ) if err != nil { return nil , err } } return result , nil }
UnMarshalToCommonMetadata unmarshals string to common metadata.
UnMarshalToCommonMetadata unmarshals string to common metadata .