createTvcApp method
Create a new TVC application
Sign the provided TCreateTvcAppBody with the client's stamp function and submit the request (POST /public/v1/submit/create_tvc_app).
See also: stampCreateTvcApp.
Implementation
Future<TCreateTvcAppResponse> createTvcApp({
required TCreateTvcAppBody 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_APP',
);
return await request<Map<String, dynamic>, TCreateTvcAppResponse>(
"/public/v1/submit/create_tvc_app",
body,
(json) => TCreateTvcAppResponse.fromJson(
transformActivityResponse(json, 'CreateTvcApp')));
}