Created
January 31, 2022 07:59
-
-
Save codephillip/72d9799253d0f437683899dac0b097b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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