15 lines
308 B
Python
15 lines
308 B
Python
class MailPojo:
|
|
email: str
|
|
|
|
def __init__(self, email: str):
|
|
self.email = email
|
|
|
|
@staticmethod
|
|
def from_firestore_dict(source):
|
|
email = source['email']
|
|
result = MailPojo(email=email)
|
|
return result
|
|
|
|
def __repr__(self):
|
|
return "email = " + self.email
|