Adjusted the distributions schema to match the correct returned value.

Added method _attributes_to_properties to convert the object into the
expected object for distributions.

Signed-off-by: Florian Bergmann <fbergmann@suse.de>