getObject<T> static method

Future<T> getObject<T>(
  1. String filePath
)

Implementation

static Future<T> getObject<T>(String filePath) async {
  final string = await getJsonString(filePath);
  final json = jsonDecode(string);
  return _tryConverting(json);
}