<?php

namespace Eminiarts\Aura\Fields;

class File extends Field
{
    public $component = 'aura::fields.file';

    // public $view = 'components.fields.file';

    public function get($field, $value)
    {
        return json_decode($value, true);
    }

    public function set($value)
    {
        return json_encode($value);
    }
}
