public static function convertEasyPostObjectToArray($values)
    {
        $results = array();
        foreach ($values as $k => $v) {
            if ($v instanceof EasyPostObject) {
                $results[$k] = $v->__toArray(true);
            } else if (is_array($v)) {
                $results[$k] = self::convertEasyPostObjectToArray($v);
            } else {
                $results[$k] = $v;
            }
        }

        return $results;
    }
public static function convertEasyPostObjectToArray($values)
    {
        $results = array();
        foreach ($values as $k => $v) {
            if ($v instanceof EasyPostObject) {
                $results[$k] = $v->__toArray(true);
            } else if (is_array($v)) {
                $results[$k] = self::convertEasyPostObjectToArray($v);
            } else {
                $results[$k] = $v;
            }
        }

        return $results;
    }
public static function convertEasyPostObjectToArray ( $ values ) { $ results = array ( ) ; foreach ( $ values as $ k => $ v ) { if ( $ v instanceof EasyPostObject ) { $ results [ $ k ] = $ v -> __toArray ( true ) ; } else if ( is_array ( $ v ) ) { $ results [ $ k ] = self :: convertEasyPostObjectToArray ( $ v ) ; } else { $ results [ $ k ] = $ v ; } } return $ results ; }
convert EasyPost object to an array

@param mixed $values
@return array
convert EasyPost object to an array