toJson method
Implementation
Map<String, dynamic> toJson() => {
'type': type.toJson(),
'typeImpl': typeImpl.toJson(),
"isAsync": isAsync,
"preResolve": preResolve,
"injectableType": injectableType,
if (moduleConfig != null) 'moduleConfig': moduleConfig!.toJson(),
if (disposeFunction != null)
'disposeFunction': disposeFunction!.toJson(),
"dependsOn": dependsOn.map((v) => v.toJson()).toList(),
"environments": environments,
"dependencies": dependencies.map((v) => v.toJson()).toList(),
if (instanceName != null) "instanceName": instanceName,
if (signalsReady != null) "signalsReady": signalsReady,
if (constructorName != null) "constructorName": constructorName,
};