ContentType constructor

ContentType(
  1. [String _contentTypeUid,
  2. HttpClient _client]
)

Implementation

ContentType([this._contentTypeUid, this._client]) {
  _queryParameter['environment'] = _client.stackHeaders['environment'];
  if (_contentTypeUid != null && _contentTypeUid.isNotEmpty) {
    urlPath = '/${_client.stack.apiVersion}/content_types/$_contentTypeUid';
  }
}