toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (architecture != null) 'architecture': architecture!,
      if (binarySourceInfo != null) 'binarySourceInfo': binarySourceInfo!,
      if (binaryVersion != null) 'binaryVersion': binaryVersion!,
      if (cpeUri != null) 'cpeUri': cpeUri!,
      if (dependencyChain != null) 'dependencyChain': dependencyChain!,
      if (fileLocation != null) 'fileLocation': fileLocation!,
      if (hashDigest != null) 'hashDigest': hashDigest!,
      if (licenses != null) 'licenses': licenses!,
      if (maintainer != null) 'maintainer': maintainer!,
      if (os != null) 'os': os!,
      if (osVersion != null) 'osVersion': osVersion!,
      if (package != null) 'package': package!,
      if (packageType != null) 'packageType': packageType!,
      if (patchedCve != null) 'patchedCve': patchedCve!,
      if (sourceVersion != null) 'sourceVersion': sourceVersion!,
      if (unused != null) 'unused': unused!,
      if (version != null) 'version': version!,
    };