Files
appointment_request/models/LinkPojo.py
T

14 lines
404 B
Python

class LinkPojo():
def __init__(self, url, email, updated_at):
self.url = url
self.email = email
self.updated_at = updated_at
@staticmethod
def from_firestore_dict(source):
updated_at = source['updated_at']
email = source['email']
url = source['url']
result = LinkPojo(email=email, url=url, updated_at=updated_at)
return result