# Path: messagebird/base.py
# class Base:
#     def load(self, data):
#         if data is not None:
#             for name, value in list(data.items()):
#                 if hasattr(self, name) and not callable(getattr(self, name)):
#                     setattr(self, name, value)
# 
#         return self
# 
#     @staticmethod
#     def value_to_time(value, format='%Y-%m-%dT%H:%M:%S+00:00'):
#         if value is not None:
#             return dateutil.parser.parse(value).replace(microsecond=0)
# 
# Path: messagebird/webhook.py
# class Webhook(Base):
# 
#     def __init__(self):
#         self.url = None
#         self.token = None
# 
#     def __str__(self):
#         return "\n".join([
#             'url                : %s' % self.url,
#             'token              : %s' % self.token,
#         ])


from messagebird.base import Base
from messagebird.webhook import Webhook
    @property
    def updatedAt(self):
        return self._updatedAt

    @updatedAt.setter
    def updatedAt(self, value):
        self._updatedAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def createdAt(self):
        return self._createdAt

    @createdAt.setter
    def createdAt(self, value):
        self._createdAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def endedAt(self):
        return self._endedAt

    @endedAt.setter
    def endedAt(self, value):
        self._endedAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def webhook(self):
        return self._webhook

    @webhook.setter
    def webhook(self, value):

# Path: messagebird/base.py
# class Base:
#     def load(self, data):
#         if data is not None:
#             for name, value in list(data.items()):
#                 if hasattr(self, name) and not callable(getattr(self, name)):
#                     setattr(self, name, value)
# 
#         return self
# 
#     @staticmethod
#     def value_to_time(value, format='%Y-%m-%dT%H:%M:%S+00:00'):
#         if value is not None:
#             return dateutil.parser.parse(value).replace(microsecond=0)
# 
# Path: messagebird/webhook.py
# class Webhook(Base):
# 
#     def __init__(self):
#         self.url = None
#         self.token = None
# 
#     def __str__(self):
#         return "\n".join([
#             'url                : %s' % self.url,
#             'token              : %s' % self.token,
#         ])


# Path: messagebird/call_data.py
from messagebird.base import Base
from messagebird.webhook import Webhook

    @property
    def updatedAt(self):
        return self._updatedAt

    @updatedAt.setter
    def updatedAt(self, value):
        self._updatedAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def createdAt(self):
        return self._createdAt

    @createdAt.setter
    def createdAt(self, value):
        self._createdAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def endedAt(self):
        return self._endedAt

    @endedAt.setter
    def endedAt(self, value):
        self._endedAt = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')

    @property
    def webhook(self):
        return self._webhook

    @webhook.setter
    def webhook(self, value):

        self._webhook = Webhook.load(value)