parseJson method

Future parseJson(
  1. MethodCall call
)

Implementation

Future<dynamic> parseJson(MethodCall call) {
  String model = call.arguments[0];
  String json = call.arguments[1];
  try {
    return Future.value(jsonDecode(json));
  }
  on FormatException {
    return Future.value(null);
  }
}