fromString static method

TemplateWithSchema fromString(
  1. String jsonContent
)

Loads a template from a JSON string

Implementation

static TemplateWithSchema fromString(String jsonContent) {
  try {
    return _parseRptContent(jsonContent);
  } catch (e) {
    throw Exception('Error parsing the template string: $e');
  }
}