modifyDocumentTemplate method

Future<DocumentTemplate> modifyDocumentTemplate(
  1. String sdkId,
  2. DocumentTemplate documentTemplate
)

Implementation

Future<DocumentTemplate> modifyDocumentTemplate(String sdkId, DocumentTemplate documentTemplate) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentTemplateApi.modifyDocumentTemplate',
		{
			"sdkId": sdkId,
			"documentTemplate": jsonEncode(DocumentTemplate.encode(documentTemplate)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyDocumentTemplate");
	final parsedResJson = jsonDecode(res);
	return DocumentTemplate.fromJSON(parsedResJson);
}