get method
Gets the specified matter.
Request parameters:
matterId
- The matter ID.
view
- Specifies how much information about the matter to return in the
response.
Possible string values are:
- "VIEW_UNSPECIFIED" : The amount of detail is unspecified. Same as BASIC.
- "BASIC" : Returns the matter ID, name, description, and state. Default choice.
- "FULL" : Returns the basic details and a list of matter owners and collaborators (see MatterPermissions).
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Matter.
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<Matter> get(
core.String matterId, {
core.String? view,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (view != null) 'view': [view],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/matters/' + commons.escapeVariable('$matterId');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return Matter.fromJson(response_ as core.Map<core.String, core.dynamic>);
}