class Comet::DeviceConfig

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  ret['FriendlyName'] = @friendly_name
  unless @registration_time.nil?
    ret['RegistrationTime'] = @registration_time
  end
  unless @platform_version.nil?
    ret['PlatformVersion'] = @platform_version
  end
  unless @sources.nil?
    ret['Sources'] = @sources
  end
  unless @device_timezone.nil?
    ret['DeviceTimezone'] = @device_timezone
  end
  unless @client_version.nil?
    ret['ClientVersion'] = @client_version
  end
  unless @syncro_uuid.nil?
    ret['SyncroUUID'] = @syncro_uuid
  end
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end