def deserialize_embedded(builder, media)
      make_embedded_resource = ->(x) { self.class.new(x).to_representor_hash.to_h }
      (media[EMBEDDED_KEY] || {}).each do |name, value|
        resource_hash = map_or_apply(make_embedded_resource, value)
        builder = builder.add_embedded(name, resource_hash)
      end
      builder
    end
def deserialize_embedded(builder, media)
      make_embedded_resource = ->(x) { self.class.new(x).to_representor_hash.to_h }
      (media[EMBEDDED_KEY] || {}).each do |name, value|
        resource_hash = map_or_apply(make_embedded_resource, value)
        builder = builder.add_embedded(name, resource_hash)
      end
      builder
    end
embedded resources are under '_embedded' in the original document, similarly to links they can
 contain an array or a single embedded resource. An embedded resource is a full document so
 we create a new HaleDeserializer for each.