InjectedDependency.fromJson constructor

InjectedDependency.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InjectedDependency.fromJson(Map<String, dynamic> json) {
  var type;
  if (json['type'] != null) {
    type = ImportableType.fromJson(json['type']);
  }
  return InjectedDependency(
    type: type,
    instanceName: json['instanceName'],
    paramName: json['paramName'],
    isFactoryParam: json['isFactoryParam'],
    isPositional: json['isPositional'],
  );
}