Parses the given string into `GdkContentFormats` and returns the formats.
Strings printed via [method@Gdk.ContentFormats.to_string] can be read in again successfully using this function.
If string does not describe valid content formats, null is returned.
| string |
the string to parse |
|
the content formats if |