VolumeAccessInfo.fromJson constructor

VolumeAccessInfo.fromJson(
  1. Map json_
)

Implementation

VolumeAccessInfo.fromJson(core.Map json_)
    : this(
        accessViewStatus: json_.containsKey('accessViewStatus')
            ? json_['accessViewStatus'] as core.String
            : null,
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        downloadAccess: json_.containsKey('downloadAccess')
            ? DownloadAccessRestriction.fromJson(json_['downloadAccess']
                as core.Map<core.String, core.dynamic>)
            : null,
        driveImportedContentLink:
            json_.containsKey('driveImportedContentLink')
                ? json_['driveImportedContentLink'] as core.String
                : null,
        embeddable: json_.containsKey('embeddable')
            ? json_['embeddable'] as core.bool
            : null,
        epub: json_.containsKey('epub')
            ? VolumeAccessInfoEpub.fromJson(
                json_['epub'] as core.Map<core.String, core.dynamic>)
            : null,
        explicitOfflineLicenseManagement:
            json_.containsKey('explicitOfflineLicenseManagement')
                ? json_['explicitOfflineLicenseManagement'] as core.bool
                : null,
        pdf: json_.containsKey('pdf')
            ? VolumeAccessInfoPdf.fromJson(
                json_['pdf'] as core.Map<core.String, core.dynamic>)
            : null,
        publicDomain: json_.containsKey('publicDomain')
            ? json_['publicDomain'] as core.bool
            : null,
        quoteSharingAllowed: json_.containsKey('quoteSharingAllowed')
            ? json_['quoteSharingAllowed'] as core.bool
            : null,
        textToSpeechPermission: json_.containsKey('textToSpeechPermission')
            ? json_['textToSpeechPermission'] as core.String
            : null,
        viewOrderUrl: json_.containsKey('viewOrderUrl')
            ? json_['viewOrderUrl'] as core.String
            : null,
        viewability: json_.containsKey('viewability')
            ? json_['viewability'] as core.String
            : null,
        webReaderLink: json_.containsKey('webReaderLink')
            ? json_['webReaderLink'] as core.String
            : null,
      );