toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'type': type.toJson(),
  'typeImpl': typeImpl.toJson(),
  "isAsync": isAsync,
  "postConstructReturnsSelf": postConstructReturnsSelf,
  "preResolve": preResolve,
  "canBeConst": canBeConst,
  "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,
  if (postConstruct != null) "postConstruct": postConstruct,
  "orderPosition": orderPosition,
  if (scope != null) "scope": scope,
};