code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
  
          data = {}
          data['longitude'] = float(array.get('longitude'))
          data['latitude'] = float(array.get('latitude'))
          data['_raw'] = array
          return Location(**data)
docs: Deserialize a new Location from a given dictionary.
  
          :return: new Location instance.
          :rtype: Location