code: def from_metadata(cls, metadata: Dict[str, Any]) -> 'LogFields':
          
          return cls(fields=json.loads(metadata.get(LOG_FIELDS_KEY_META, '{}')))
docs: Initialize the log fields from the provided metadata
  
          The log fields are taken from the `LOG_FIELDS_KEY_META` key of the
          provided metadata.