getFarm method

Future<GetFarmResponse> getFarm({
  1. required String farmId,
})

Get a farm.

May throw AccessDeniedException. May throw InternalServerErrorException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter farmId : The farm ID of the farm.

Implementation

Future<GetFarmResponse> getFarm({
  required String farmId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2023-10-12/farms/${Uri.encodeComponent(farmId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetFarmResponse.fromJson(response);
}