@classmethod
def from_json(cls, json):
    """Builds a LocationAttachment object from JSON provided by the API.

        Args:
            json: A dict containing the JSON representation that is converted
                  into the LocationAttachment object.

        Returns:
            A LocationAttachment object.

        """
    return cls(json['payload']['coordinates']['lat'], json['payload'][
        'coordinates']['long'])
