createTvcDeployment method

Future<TCreateTvcDeploymentResponse> createTvcDeployment({
  1. required TCreateTvcDeploymentBody input,
})

Create a new TVC Deployment

Sign the provided TCreateTvcDeploymentBody with the client's stamp function and submit the request (POST /public/v1/submit/create_tvc_deployment).

See also: stampCreateTvcDeployment.

Implementation

Future<TCreateTvcDeploymentResponse> createTvcDeployment({
  required TCreateTvcDeploymentBody input,
}) async {
  final body = packActivityBody(
    bodyJson: input.toJson(),
    fallbackOrganizationId: input.organizationId ??
        config.organizationId ??
        (throw Exception(
            "Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
    activityType: 'ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT',
  );
  return await request<Map<String, dynamic>, TCreateTvcDeploymentResponse>(
      "/public/v1/submit/create_tvc_deployment",
      body,
      (json) => TCreateTvcDeploymentResponse.fromJson(
          transformActivityResponse(json, 'CreateTvcDeployment')));
}