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