PackageInfoOccurrence.fromJson constructor

PackageInfoOccurrence.fromJson(
  1. Map _json
)

Implementation

PackageInfoOccurrence.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,
        homePage: _json.containsKey('homePage')
            ? _json['homePage'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        licenseConcluded: _json.containsKey('licenseConcluded')
            ? License.fromJson(_json['licenseConcluded']
                as core.Map<core.String, core.dynamic>)
            : null,
        packageType: _json.containsKey('packageType')
            ? _json['packageType'] as core.String
            : null,
        sourceInfo: _json.containsKey('sourceInfo')
            ? _json['sourceInfo'] as core.String
            : null,
        summaryDescription: _json.containsKey('summaryDescription')
            ? _json['summaryDescription'] as core.String
            : null,
        title:
            _json.containsKey('title') ? _json['title'] as core.String : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.String
            : null,
      );