Item.fromJson constructor

Item.fromJson(
  1. Map json_
)

Implementation

Item.fromJson(core.Map json_)
    : this(
        availablePackage: json_.containsKey('availablePackage')
            ? SoftwarePackage.fromJson(json_['availablePackage']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        installedPackage: json_.containsKey('installedPackage')
            ? SoftwarePackage.fromJson(json_['installedPackage']
                as core.Map<core.String, core.dynamic>)
            : null,
        originType: json_.containsKey('originType')
            ? json_['originType'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );