<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_metadata(cls, metadata: Dict[str, Any]) -> 'LogFields': """Initialize the log fields from the provided metadata The log fields are taken from the `LOG_FIELDS_KEY_META` key of the provided metadata. """

        return cls(fields=json.loads(metadata.get(LOG_FIELDS_KEY_META, '{}')))