src/Marshaler/DynamoDb/ItemMarshaler.php
public function decodeDynamicField($value, Field $field)
    {
        $data = ['name' => $value['name']['S']];
        unset($value['name']);

        $kind = key($value);
        $data[$kind] = current($value[$kind]);

        return DynamicField::fromArray($data);
    }
public function decodeDynamicField($value, Field $field)
    {
        $data = ['name' => $value['name']['S']];
        unset($value['name']);

        $kind = key($value);
        $data[$kind] = current($value[$kind]);

        return DynamicField::fromArray($data);
    }
public function decodeDynamicField ( $ value , Field $ field ) { $ data = [ 'name' => $ value [ 'name' ] [ 'S' ] ] ; unset ( $ value [ 'name' ] ) ; $ kind = key ( $ value ) ; $ data [ $ kind ] = current ( $ value [ $ kind ] ) ; return DynamicField :: fromArray ( $ data ) ; }
@param mixed $value
@param Field $field

@return DynamicField
@param mixed $value @param Field $field