Skip to content

Instantly share code, notes, and snippets.

@codephillip
Created January 31, 2022 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codephillip/72d9799253d0f437683899dac0b097b1 to your computer and use it in GitHub Desktop.
Save codephillip/72d9799253d0f437683899dac0b097b1 to your computer and use it in GitHub Desktop.
from dataclasses import dataclass, asdict
from typing import List
from ms_foobar_app.utils.utilities import snake_case_dict_to_camel
@dataclass
class SmsMessage:
phone_numbers: List[str]
message: str
def dict(self):
return snake_case_dict_to_camel(asdict(self))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment