/** * @inheritdoc */ public function newFromBuilder($attributes = [], $connection = null) { $model = parent::newFromBuilder($attributes, $connection = null); foreach ($this->getJsonFields() as $field) { $model->{$field} = json_decode($model->{$field}, true); } return $model; }