You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
flowroutenumbersandmessaging.models.new_route
|
|
|
|
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io )
|
|
"""
|
|
import flowroutenumbersandmessaging.models.data_61
|
|
|
|
class NewRoute(object):
|
|
|
|
"""Implementation of the 'NewRoute' model.
|
|
|
|
TODO: type model description here.
|
|
|
|
Attributes:
|
|
data (Data61): TODO: type description here.
|
|
|
|
"""
|
|
|
|
# Create a mapping from Model property names to API property names
|
|
_names = {
|
|
"data" : "data"
|
|
}
|
|
|
|
def __init__(self,
|
|
data=None):
|
|
"""Constructor for the NewRoute class"""
|
|
|
|
# Initialize members of the class
|
|
self.data = data
|
|
|
|
|
|
@classmethod
|
|
def from_dictionary(cls,
|
|
dictionary):
|
|
"""Creates an instance of this model from a dictionary
|
|
|
|
Args:
|
|
dictionary (dictionary): A dictionary representation of the object as
|
|
obtained from the deserialization of the server's response. The keys
|
|
MUST match property names in the API description.
|
|
|
|
Returns:
|
|
object: An instance of this structure class.
|
|
|
|
"""
|
|
if dictionary is None:
|
|
return None
|
|
|
|
# Extract variables from the dictionary
|
|
data = flowroutenumbersandmessaging.models.data_61.Data61.from_dictionary(dictionary.get("data")) if dictionary.get("data") else None
|
|
|
|
# Return an object of this model
|
|
return cls(data)
|
|
|
|
|
|
|