DisposeFunctionConfig.fromJson constructor

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

Implementation

factory DisposeFunctionConfig.fromJson(Map<String, dynamic> json) {
  ImportableType? disposeFunction;

  if (json['importableType'] != null) {
    disposeFunction = ImportableType.fromJson(json['importableType']);
  }
  return DisposeFunctionConfig(
    isInstance: json['isInstance'] as bool,
    name: json['name'] as String,
    importableType: disposeFunction,
  );
}