Product.fromJson constructor

Product.fromJson(
  1. Map json_
)

Implementation

Product.fromJson(core.Map json_)
    : this(
        appRestrictionsSchema: json_.containsKey('appRestrictionsSchema')
            ? AppRestrictionsSchema.fromJson(json_['appRestrictionsSchema']
                as core.Map<core.String, core.dynamic>)
            : null,
        appTracks: json_.containsKey('appTracks')
            ? (json_['appTracks'] as core.List)
                .map((value) => TrackInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        appVersion: json_.containsKey('appVersion')
            ? (json_['appVersion'] as core.List)
                .map((value) => AppVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        authorName: json_.containsKey('authorName')
            ? json_['authorName'] as core.String
            : null,
        availableCountries: json_.containsKey('availableCountries')
            ? (json_['availableCountries'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        availableTracks: json_.containsKey('availableTracks')
            ? (json_['availableTracks'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        contentRating: json_.containsKey('contentRating')
            ? json_['contentRating'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        detailsUrl: json_.containsKey('detailsUrl')
            ? json_['detailsUrl'] as core.String
            : null,
        distributionChannel: json_.containsKey('distributionChannel')
            ? json_['distributionChannel'] as core.String
            : null,
        features: json_.containsKey('features')
            ? (json_['features'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        fullDescription: json_.containsKey('fullDescription')
            ? json_['fullDescription'] as core.String
            : null,
        iconUrl: json_.containsKey('iconUrl')
            ? json_['iconUrl'] as core.String
            : null,
        lastUpdatedTimestampMillis:
            json_.containsKey('lastUpdatedTimestampMillis')
                ? json_['lastUpdatedTimestampMillis'] as core.String
                : null,
        minAndroidSdkVersion: json_.containsKey('minAndroidSdkVersion')
            ? json_['minAndroidSdkVersion'] as core.int
            : null,
        permissions: json_.containsKey('permissions')
            ? (json_['permissions'] as core.List)
                .map((value) => ProductPermission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        productPricing: json_.containsKey('productPricing')
            ? json_['productPricing'] as core.String
            : null,
        recentChanges: json_.containsKey('recentChanges')
            ? json_['recentChanges'] as core.String
            : null,
        requiresContainerApp: json_.containsKey('requiresContainerApp')
            ? json_['requiresContainerApp'] as core.bool
            : null,
        screenshotUrls: json_.containsKey('screenshotUrls')
            ? (json_['screenshotUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        signingCertificate: json_.containsKey('signingCertificate')
            ? ProductSigningCertificate.fromJson(json_['signingCertificate']
                as core.Map<core.String, core.dynamic>)
            : null,
        smallIconUrl: json_.containsKey('smallIconUrl')
            ? json_['smallIconUrl'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        workDetailsUrl: json_.containsKey('workDetailsUrl')
            ? json_['workDetailsUrl'] as core.String
            : null,
      );