fromJson<T extends PassageFlutterModel> function

T fromJson<T extends PassageFlutterModel>(
  1. String jsonString,
  2. Function fromMap
)

Implementation

T fromJson<T extends PassageFlutterModel>(String jsonString, Function fromMap) {
  Map<String, dynamic> map = jsonDecode(jsonString);
  return fromMap(map) as T;
}