Devise\Pages\Fields\FieldValue::__construct PHP Method

__construct() public method

Create a new FieldValue object from json string
public __construct ( string $json )
$json string
    public function __construct($json)
    {
        $this->json = $json;
        $values = json_decode($json, true);
        $this->count = count($values);
        foreach ($values as $key => $value) {
            $this->{$key} = $value;
        }
    }