parseTree<T> static method

T? parseTree<T>(
  1. String? manifestContent
)

Implementation

static T? parseTree<T>(String? manifestContent) {
  if (isEncodedJSONMap(manifestContent)) {
    return parseJSON(manifestContent) as T?;
  } else {
    try {
      return loadYaml(manifestContent!) as T?;
    } catch (e) {
      print(e);
    }
  }
  return null;
}