decode method

Future<Map?> decode(
  1. String fileName,
  2. IFileContent fileContent
)

The method that do the loading

Implementation

Future<Map?> decode(
    final String fileName, final IFileContent fileContent) async {
  Map? returnValue;
  try {
    final String content = await loadFileContent(fileName, fileContent);
    returnValue = decodeContent(content);
  } catch (e) {}
  return returnValue;
}