title: How to convert Python dataclass to dictionary of string literal?
body: <p>Given a dataclass like below:</p>
  <pre><code>class MessageHeader(BaseModel):
      message_id: uuid.UUID
  
      def dict(self, **kwargs):
          return json.loads(self.json())
  </code></pre>
  <p>I would like to get a dictionary of string literal when I call <code>dict</code> on <code>MessageHeader</code>
  The desired outcome of dictionary is like below:</p>
  <pre><code>{'message_id': '383b0bfc-743e-4738-8361-27e6a0753b5a'}
  </code></pre>
  <p>I want to avoid using 3rd party library like <code>pydantic</code> &amp; I do not want to use <code>json.loads(self.json())</code> as there are extra round trips</p>
  <p>Is there any better way to convert a dataclass to a dictionary with string literal like above?</p>