/**
  * Constructs a {@link Serialization} object.
  *
  * @param Model $model The model to serialize
  * @param array &$options Options for serialization
  * @return Serialization
  */
 public function __construct(Model $model, &$options)
 {
     $this->model = $model;
     $this->options = $options;
     $this->attributes = $model->attributes();
     $this->parse_options();
 }