PackageOccurrence.fromJson constructor

PackageOccurrence.fromJson(
  1. Map _json
)

Implementation

PackageOccurrence.fromJson(core.Map _json)
    : this(
        comment: _json.containsKey('comment')
            ? _json['comment'] as core.String
            : null,
        filename: _json.containsKey('filename')
            ? _json['filename'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        licenseComments: _json.containsKey('licenseComments')
            ? _json['licenseComments'] as core.String
            : null,
        licenseConcluded: _json.containsKey('licenseConcluded')
            ? _json['licenseConcluded'] as core.String
            : null,
        sourceInfo: _json.containsKey('sourceInfo')
            ? _json['sourceInfo'] as core.String
            : null,
      );