toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (architecture != null) 'architecture': architecture!,
      if (cpeUri != null) 'cpeUri': cpeUri!,
      if (description != null) 'description': description!,
      if (digest != null) 'digest': digest!,
      if (distribution != null) 'distribution': distribution!,
      if (license != null) 'license': license!,
      if (maintainer != null) 'maintainer': maintainer!,
      if (name != null) 'name': name!,
      if (packageType != null) 'packageType': packageType!,
      if (url != null) 'url': url!,
      if (version != null) 'version': version!,
    };