/**
* constructor
*
* @param array $attributes attributes array
*/
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$grantInfo = isset($attributes['grants']) ? json_decode($attributes['grants'], true) : [];
$this->grant = new Grant($grantInfo);
}