public function create(CustomField $customField): CustomField
    {
        $response = $this->client->post($this->prepareUrlForKey('create-custom-field'), [], $customField->jsonSerialize());
        $responseData = $response->getDecodedBody();

        return new CustomField($responseData);
    }
public function create(CustomField $customField): CustomField
    {
        $response = $this->client->post($this->prepareUrlForKey('create-custom-field'), [], $customField->jsonSerialize());
        $responseData = $response->getDecodedBody();

        return new CustomField($responseData);
    }
public function create ( CustomField $ customField ) : CustomField { $ response = $ this -> client -> post ( $ this -> prepareUrlForKey ( 'create-custom-field' ) , [ ] , $ customField -> jsonSerialize ( ) ) ; $ responseData = $ response -> getDecodedBody ( ) ; return new CustomField ( $ responseData ) ; }
Creates a new custom field using the given information.

@param CustomField $customField The information of the custom field to create

@return CustomField
Creates a new custom field using the given information .