fromJson<T extends PassageFlutterModel> function

T fromJson<T extends PassageFlutterModel>(
  1. dynamic jsObject,
  2. Function fromMap
)

Implementation

T fromJson<T extends PassageFlutterModel>(jsObject, Function fromMap) {
  final Map<String, dynamic> resultMap = jsObjectToMap(jsObject);
  return fromMap(resultMap) as T;
}