get method Null safety

Future<GoogleChromeManagementV1AppDetails> get(
  1. String name,
  2. {String? $fields}
)

Get a specific app for a customer by its resource name.

Request parameters:

name - Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version. Value must have pattern ^customers/\[^/\]+/apps/android/\[^/\]+$.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleChromeManagementV1AppDetails.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<GoogleChromeManagementV1AppDetails> get(
  core.String name, {
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1/' + core.Uri.encodeFull('$name');

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return GoogleChromeManagementV1AppDetails.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}