docusign_esign.models.watermark

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14import pprint
 15import re  # noqa: F401
 16
 17import six
 18
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class Watermark(object):
 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
 26    """
 27
 28    """
 29    Attributes:
 30      swagger_types (dict): The key is attribute name
 31                            and the value is attribute type.
 32      attribute_map (dict): The key is attribute name
 33                            and the value is json key in definition.
 34    """
 35    swagger_types = {
 36        'display_angle': 'str',
 37        'enabled': 'str',
 38        'font': 'str',
 39        'font_color': 'str',
 40        'font_size': 'str',
 41        'id': 'str',
 42        'image_base64': 'str',
 43        'transparency': 'str',
 44        'watermark_text': 'str'
 45    }
 46
 47    attribute_map = {
 48        'display_angle': 'displayAngle',
 49        'enabled': 'enabled',
 50        'font': 'font',
 51        'font_color': 'fontColor',
 52        'font_size': 'fontSize',
 53        'id': 'id',
 54        'image_base64': 'imageBase64',
 55        'transparency': 'transparency',
 56        'watermark_text': 'watermarkText'
 57    }
 58
 59    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 60        """Watermark - a model defined in Swagger"""  # noqa: E501
 61        if _configuration is None:
 62            _configuration = Configuration()
 63        self._configuration = _configuration
 64
 65        self._display_angle = None
 66        self._enabled = None
 67        self._font = None
 68        self._font_color = None
 69        self._font_size = None
 70        self._id = None
 71        self._image_base64 = None
 72        self._transparency = None
 73        self._watermark_text = None
 74        self.discriminator = None
 75
 76        setattr(self, "_{}".format('display_angle'), kwargs.get('display_angle', None))
 77        setattr(self, "_{}".format('enabled'), kwargs.get('enabled', None))
 78        setattr(self, "_{}".format('font'), kwargs.get('font', None))
 79        setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None))
 80        setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None))
 81        setattr(self, "_{}".format('id'), kwargs.get('id', None))
 82        setattr(self, "_{}".format('image_base64'), kwargs.get('image_base64', None))
 83        setattr(self, "_{}".format('transparency'), kwargs.get('transparency', None))
 84        setattr(self, "_{}".format('watermark_text'), kwargs.get('watermark_text', None))
 85
 86    @property
 87    def display_angle(self):
 88        """Gets the display_angle of this Watermark.  # noqa: E501
 89
 90          # noqa: E501
 91
 92        :return: The display_angle of this Watermark.  # noqa: E501
 93        :rtype: str
 94        """
 95        return self._display_angle
 96
 97    @display_angle.setter
 98    def display_angle(self, display_angle):
 99        """Sets the display_angle of this Watermark.
100
101          # noqa: E501
102
103        :param display_angle: The display_angle of this Watermark.  # noqa: E501
104        :type: str
105        """
106
107        self._display_angle = display_angle
108
109    @property
110    def enabled(self):
111        """Gets the enabled of this Watermark.  # noqa: E501
112
113          # noqa: E501
114
115        :return: The enabled of this Watermark.  # noqa: E501
116        :rtype: str
117        """
118        return self._enabled
119
120    @enabled.setter
121    def enabled(self, enabled):
122        """Sets the enabled of this Watermark.
123
124          # noqa: E501
125
126        :param enabled: The enabled of this Watermark.  # noqa: E501
127        :type: str
128        """
129
130        self._enabled = enabled
131
132    @property
133    def font(self):
134        """Gets the font of this Watermark.  # noqa: E501
135
136        The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica,   LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.  # noqa: E501
137
138        :return: The font of this Watermark.  # noqa: E501
139        :rtype: str
140        """
141        return self._font
142
143    @font.setter
144    def font(self, font):
145        """Sets the font of this Watermark.
146
147        The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica,   LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.  # noqa: E501
148
149        :param font: The font of this Watermark.  # noqa: E501
150        :type: str
151        """
152
153        self._font = font
154
155    @property
156    def font_color(self):
157        """Gets the font_color of this Watermark.  # noqa: E501
158
159        The font color used for the information in the tab.  Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.  # noqa: E501
160
161        :return: The font_color of this Watermark.  # noqa: E501
162        :rtype: str
163        """
164        return self._font_color
165
166    @font_color.setter
167    def font_color(self, font_color):
168        """Sets the font_color of this Watermark.
169
170        The font color used for the information in the tab.  Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.  # noqa: E501
171
172        :param font_color: The font_color of this Watermark.  # noqa: E501
173        :type: str
174        """
175
176        self._font_color = font_color
177
178    @property
179    def font_size(self):
180        """Gets the font_size of this Watermark.  # noqa: E501
181
182        The font size used for the information in the tab.  Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.  # noqa: E501
183
184        :return: The font_size of this Watermark.  # noqa: E501
185        :rtype: str
186        """
187        return self._font_size
188
189    @font_size.setter
190    def font_size(self, font_size):
191        """Sets the font_size of this Watermark.
192
193        The font size used for the information in the tab.  Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.  # noqa: E501
194
195        :param font_size: The font_size of this Watermark.  # noqa: E501
196        :type: str
197        """
198
199        self._font_size = font_size
200
201    @property
202    def id(self):
203        """Gets the id of this Watermark.  # noqa: E501
204
205          # noqa: E501
206
207        :return: The id of this Watermark.  # noqa: E501
208        :rtype: str
209        """
210        return self._id
211
212    @id.setter
213    def id(self, id):
214        """Sets the id of this Watermark.
215
216          # noqa: E501
217
218        :param id: The id of this Watermark.  # noqa: E501
219        :type: str
220        """
221
222        self._id = id
223
224    @property
225    def image_base64(self):
226        """Gets the image_base64 of this Watermark.  # noqa: E501
227
228          # noqa: E501
229
230        :return: The image_base64 of this Watermark.  # noqa: E501
231        :rtype: str
232        """
233        return self._image_base64
234
235    @image_base64.setter
236    def image_base64(self, image_base64):
237        """Sets the image_base64 of this Watermark.
238
239          # noqa: E501
240
241        :param image_base64: The image_base64 of this Watermark.  # noqa: E501
242        :type: str
243        """
244
245        self._image_base64 = image_base64
246
247    @property
248    def transparency(self):
249        """Gets the transparency of this Watermark.  # noqa: E501
250
251          # noqa: E501
252
253        :return: The transparency of this Watermark.  # noqa: E501
254        :rtype: str
255        """
256        return self._transparency
257
258    @transparency.setter
259    def transparency(self, transparency):
260        """Sets the transparency of this Watermark.
261
262          # noqa: E501
263
264        :param transparency: The transparency of this Watermark.  # noqa: E501
265        :type: str
266        """
267
268        self._transparency = transparency
269
270    @property
271    def watermark_text(self):
272        """Gets the watermark_text of this Watermark.  # noqa: E501
273
274          # noqa: E501
275
276        :return: The watermark_text of this Watermark.  # noqa: E501
277        :rtype: str
278        """
279        return self._watermark_text
280
281    @watermark_text.setter
282    def watermark_text(self, watermark_text):
283        """Sets the watermark_text of this Watermark.
284
285          # noqa: E501
286
287        :param watermark_text: The watermark_text of this Watermark.  # noqa: E501
288        :type: str
289        """
290
291        self._watermark_text = watermark_text
292
293    def to_dict(self):
294        """Returns the model properties as a dict"""
295        result = {}
296
297        for attr, _ in six.iteritems(self.swagger_types):
298            value = getattr(self, attr)
299            if isinstance(value, list):
300                result[attr] = list(map(
301                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
302                    value
303                ))
304            elif hasattr(value, "to_dict"):
305                result[attr] = value.to_dict()
306            elif isinstance(value, dict):
307                result[attr] = dict(map(
308                    lambda item: (item[0], item[1].to_dict())
309                    if hasattr(item[1], "to_dict") else item,
310                    value.items()
311                ))
312            else:
313                result[attr] = value
314        if issubclass(Watermark, dict):
315            for key, value in self.items():
316                result[key] = value
317
318        return result
319
320    def to_str(self):
321        """Returns the string representation of the model"""
322        return pprint.pformat(self.to_dict())
323
324    def __repr__(self):
325        """For `print` and `pprint`"""
326        return self.to_str()
327
328    def __eq__(self, other):
329        """Returns true if both objects are equal"""
330        if not isinstance(other, Watermark):
331            return False
332
333        return self.to_dict() == other.to_dict()
334
335    def __ne__(self, other):
336        """Returns true if both objects are not equal"""
337        if not isinstance(other, Watermark):
338            return True
339
340        return self.to_dict() != other.to_dict()
class Watermark:
 23class Watermark(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        'display_angle': 'str',
 38        'enabled': 'str',
 39        'font': 'str',
 40        'font_color': 'str',
 41        'font_size': 'str',
 42        'id': 'str',
 43        'image_base64': 'str',
 44        'transparency': 'str',
 45        'watermark_text': 'str'
 46    }
 47
 48    attribute_map = {
 49        'display_angle': 'displayAngle',
 50        'enabled': 'enabled',
 51        'font': 'font',
 52        'font_color': 'fontColor',
 53        'font_size': 'fontSize',
 54        'id': 'id',
 55        'image_base64': 'imageBase64',
 56        'transparency': 'transparency',
 57        'watermark_text': 'watermarkText'
 58    }
 59
 60    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 61        """Watermark - a model defined in Swagger"""  # noqa: E501
 62        if _configuration is None:
 63            _configuration = Configuration()
 64        self._configuration = _configuration
 65
 66        self._display_angle = None
 67        self._enabled = None
 68        self._font = None
 69        self._font_color = None
 70        self._font_size = None
 71        self._id = None
 72        self._image_base64 = None
 73        self._transparency = None
 74        self._watermark_text = None
 75        self.discriminator = None
 76
 77        setattr(self, "_{}".format('display_angle'), kwargs.get('display_angle', None))
 78        setattr(self, "_{}".format('enabled'), kwargs.get('enabled', None))
 79        setattr(self, "_{}".format('font'), kwargs.get('font', None))
 80        setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None))
 81        setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None))
 82        setattr(self, "_{}".format('id'), kwargs.get('id', None))
 83        setattr(self, "_{}".format('image_base64'), kwargs.get('image_base64', None))
 84        setattr(self, "_{}".format('transparency'), kwargs.get('transparency', None))
 85        setattr(self, "_{}".format('watermark_text'), kwargs.get('watermark_text', None))
 86
 87    @property
 88    def display_angle(self):
 89        """Gets the display_angle of this Watermark.  # noqa: E501
 90
 91          # noqa: E501
 92
 93        :return: The display_angle of this Watermark.  # noqa: E501
 94        :rtype: str
 95        """
 96        return self._display_angle
 97
 98    @display_angle.setter
 99    def display_angle(self, display_angle):
100        """Sets the display_angle of this Watermark.
101
102          # noqa: E501
103
104        :param display_angle: The display_angle of this Watermark.  # noqa: E501
105        :type: str
106        """
107
108        self._display_angle = display_angle
109
110    @property
111    def enabled(self):
112        """Gets the enabled of this Watermark.  # noqa: E501
113
114          # noqa: E501
115
116        :return: The enabled of this Watermark.  # noqa: E501
117        :rtype: str
118        """
119        return self._enabled
120
121    @enabled.setter
122    def enabled(self, enabled):
123        """Sets the enabled of this Watermark.
124
125          # noqa: E501
126
127        :param enabled: The enabled of this Watermark.  # noqa: E501
128        :type: str
129        """
130
131        self._enabled = enabled
132
133    @property
134    def font(self):
135        """Gets the font of this Watermark.  # noqa: E501
136
137        The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica,   LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.  # noqa: E501
138
139        :return: The font of this Watermark.  # noqa: E501
140        :rtype: str
141        """
142        return self._font
143
144    @font.setter
145    def font(self, font):
146        """Sets the font of this Watermark.
147
148        The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica,   LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.  # noqa: E501
149
150        :param font: The font of this Watermark.  # noqa: E501
151        :type: str
152        """
153
154        self._font = font
155
156    @property
157    def font_color(self):
158        """Gets the font_color of this Watermark.  # noqa: E501
159
160        The font color used for the information in the tab.  Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.  # noqa: E501
161
162        :return: The font_color of this Watermark.  # noqa: E501
163        :rtype: str
164        """
165        return self._font_color
166
167    @font_color.setter
168    def font_color(self, font_color):
169        """Sets the font_color of this Watermark.
170
171        The font color used for the information in the tab.  Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.  # noqa: E501
172
173        :param font_color: The font_color of this Watermark.  # noqa: E501
174        :type: str
175        """
176
177        self._font_color = font_color
178
179    @property
180    def font_size(self):
181        """Gets the font_size of this Watermark.  # noqa: E501
182
183        The font size used for the information in the tab.  Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.  # noqa: E501
184
185        :return: The font_size of this Watermark.  # noqa: E501
186        :rtype: str
187        """
188        return self._font_size
189
190    @font_size.setter
191    def font_size(self, font_size):
192        """Sets the font_size of this Watermark.
193
194        The font size used for the information in the tab.  Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.  # noqa: E501
195
196        :param font_size: The font_size of this Watermark.  # noqa: E501
197        :type: str
198        """
199
200        self._font_size = font_size
201
202    @property
203    def id(self):
204        """Gets the id of this Watermark.  # noqa: E501
205
206          # noqa: E501
207
208        :return: The id of this Watermark.  # noqa: E501
209        :rtype: str
210        """
211        return self._id
212
213    @id.setter
214    def id(self, id):
215        """Sets the id of this Watermark.
216
217          # noqa: E501
218
219        :param id: The id of this Watermark.  # noqa: E501
220        :type: str
221        """
222
223        self._id = id
224
225    @property
226    def image_base64(self):
227        """Gets the image_base64 of this Watermark.  # noqa: E501
228
229          # noqa: E501
230
231        :return: The image_base64 of this Watermark.  # noqa: E501
232        :rtype: str
233        """
234        return self._image_base64
235
236    @image_base64.setter
237    def image_base64(self, image_base64):
238        """Sets the image_base64 of this Watermark.
239
240          # noqa: E501
241
242        :param image_base64: The image_base64 of this Watermark.  # noqa: E501
243        :type: str
244        """
245
246        self._image_base64 = image_base64
247
248    @property
249    def transparency(self):
250        """Gets the transparency of this Watermark.  # noqa: E501
251
252          # noqa: E501
253
254        :return: The transparency of this Watermark.  # noqa: E501
255        :rtype: str
256        """
257        return self._transparency
258
259    @transparency.setter
260    def transparency(self, transparency):
261        """Sets the transparency of this Watermark.
262
263          # noqa: E501
264
265        :param transparency: The transparency of this Watermark.  # noqa: E501
266        :type: str
267        """
268
269        self._transparency = transparency
270
271    @property
272    def watermark_text(self):
273        """Gets the watermark_text of this Watermark.  # noqa: E501
274
275          # noqa: E501
276
277        :return: The watermark_text of this Watermark.  # noqa: E501
278        :rtype: str
279        """
280        return self._watermark_text
281
282    @watermark_text.setter
283    def watermark_text(self, watermark_text):
284        """Sets the watermark_text of this Watermark.
285
286          # noqa: E501
287
288        :param watermark_text: The watermark_text of this Watermark.  # noqa: E501
289        :type: str
290        """
291
292        self._watermark_text = watermark_text
293
294    def to_dict(self):
295        """Returns the model properties as a dict"""
296        result = {}
297
298        for attr, _ in six.iteritems(self.swagger_types):
299            value = getattr(self, attr)
300            if isinstance(value, list):
301                result[attr] = list(map(
302                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303                    value
304                ))
305            elif hasattr(value, "to_dict"):
306                result[attr] = value.to_dict()
307            elif isinstance(value, dict):
308                result[attr] = dict(map(
309                    lambda item: (item[0], item[1].to_dict())
310                    if hasattr(item[1], "to_dict") else item,
311                    value.items()
312                ))
313            else:
314                result[attr] = value
315        if issubclass(Watermark, dict):
316            for key, value in self.items():
317                result[key] = value
318
319        return result
320
321    def to_str(self):
322        """Returns the string representation of the model"""
323        return pprint.pformat(self.to_dict())
324
325    def __repr__(self):
326        """For `print` and `pprint`"""
327        return self.to_str()
328
329    def __eq__(self, other):
330        """Returns true if both objects are equal"""
331        if not isinstance(other, Watermark):
332            return False
333
334        return self.to_dict() == other.to_dict()
335
336    def __ne__(self, other):
337        """Returns true if both objects are not equal"""
338        if not isinstance(other, Watermark):
339            return True
340
341        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

Watermark(_configuration=None, **kwargs)
60    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
61        """Watermark - a model defined in Swagger"""  # noqa: E501
62        if _configuration is None:
63            _configuration = Configuration()
64        self._configuration = _configuration
65
66        self._display_angle = None
67        self._enabled = None
68        self._font = None
69        self._font_color = None
70        self._font_size = None
71        self._id = None
72        self._image_base64 = None
73        self._transparency = None
74        self._watermark_text = None
75        self.discriminator = None
76
77        setattr(self, "_{}".format('display_angle'), kwargs.get('display_angle', None))
78        setattr(self, "_{}".format('enabled'), kwargs.get('enabled', None))
79        setattr(self, "_{}".format('font'), kwargs.get('font', None))
80        setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None))
81        setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None))
82        setattr(self, "_{}".format('id'), kwargs.get('id', None))
83        setattr(self, "_{}".format('image_base64'), kwargs.get('image_base64', None))
84        setattr(self, "_{}".format('transparency'), kwargs.get('transparency', None))
85        setattr(self, "_{}".format('watermark_text'), kwargs.get('watermark_text', None))

Watermark - a model defined in Swagger

swagger_types = {'display_angle': 'str', 'enabled': 'str', 'font': 'str', 'font_color': 'str', 'font_size': 'str', 'id': 'str', 'image_base64': 'str', 'transparency': 'str', 'watermark_text': 'str'}
attribute_map = {'display_angle': 'displayAngle', 'enabled': 'enabled', 'font': 'font', 'font_color': 'fontColor', 'font_size': 'fontSize', 'id': 'id', 'image_base64': 'imageBase64', 'transparency': 'transparency', 'watermark_text': 'watermarkText'}
display_angle

Gets the display_angle of this Watermark. # noqa: E501

# noqa: E501

Returns

The display_angle of this Watermark. # noqa: E501

enabled

Gets the enabled of this Watermark. # noqa: E501

# noqa: E501

Returns

The enabled of this Watermark. # noqa: E501

font

Gets the font of this Watermark. # noqa: E501

The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica, LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default. # noqa: E501

Returns

The font of this Watermark. # noqa: E501

font_color

Gets the font_color of this Watermark. # noqa: E501

The font color used for the information in the tab. Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White. # noqa: E501

Returns

The font_color of this Watermark. # noqa: E501

font_size

Gets the font_size of this Watermark. # noqa: E501

The font size used for the information in the tab. Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72. # noqa: E501

Returns

The font_size of this Watermark. # noqa: E501

id

Gets the id of this Watermark. # noqa: E501

# noqa: E501

Returns

The id of this Watermark. # noqa: E501

image_base64

Gets the image_base64 of this Watermark. # noqa: E501

# noqa: E501

Returns

The image_base64 of this Watermark. # noqa: E501

transparency

Gets the transparency of this Watermark. # noqa: E501

# noqa: E501

Returns

The transparency of this Watermark. # noqa: E501

watermark_text

Gets the watermark_text of this Watermark. # noqa: E501

# noqa: E501

Returns

The watermark_text of this Watermark. # noqa: E501

def to_dict(self)
294    def to_dict(self):
295        """Returns the model properties as a dict"""
296        result = {}
297
298        for attr, _ in six.iteritems(self.swagger_types):
299            value = getattr(self, attr)
300            if isinstance(value, list):
301                result[attr] = list(map(
302                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303                    value
304                ))
305            elif hasattr(value, "to_dict"):
306                result[attr] = value.to_dict()
307            elif isinstance(value, dict):
308                result[attr] = dict(map(
309                    lambda item: (item[0], item[1].to_dict())
310                    if hasattr(item[1], "to_dict") else item,
311                    value.items()
312                ))
313            else:
314                result[attr] = value
315        if issubclass(Watermark, dict):
316            for key, value in self.items():
317                result[key] = value
318
319        return result

Returns the model properties as a dict

def to_str(self)
321    def to_str(self):
322        """Returns the string representation of the model"""
323        return pprint.pformat(self.to_dict())

Returns the string representation of the model