VolumeVolumeInfo.fromJson constructor

VolumeVolumeInfo.fromJson(
  1. Map json_
)

Implementation

VolumeVolumeInfo.fromJson(core.Map json_)
    : this(
        allowAnonLogging: json_.containsKey('allowAnonLogging')
            ? json_['allowAnonLogging'] as core.bool
            : null,
        authors: json_.containsKey('authors')
            ? (json_['authors'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        averageRating: json_.containsKey('averageRating')
            ? (json_['averageRating'] as core.num).toDouble()
            : null,
        canonicalVolumeLink: json_.containsKey('canonicalVolumeLink')
            ? json_['canonicalVolumeLink'] as core.String
            : null,
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        comicsContent: json_.containsKey('comicsContent')
            ? json_['comicsContent'] as core.bool
            : null,
        contentVersion: json_.containsKey('contentVersion')
            ? json_['contentVersion'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        dimensions: json_.containsKey('dimensions')
            ? VolumeVolumeInfoDimensions.fromJson(
                json_['dimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        imageLinks: json_.containsKey('imageLinks')
            ? VolumeVolumeInfoImageLinks.fromJson(
                json_['imageLinks'] as core.Map<core.String, core.dynamic>)
            : null,
        industryIdentifiers: json_.containsKey('industryIdentifiers')
            ? (json_['industryIdentifiers'] as core.List)
                .map((value) => VolumeVolumeInfoIndustryIdentifiers.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        infoLink: json_.containsKey('infoLink')
            ? json_['infoLink'] as core.String
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        mainCategory: json_.containsKey('mainCategory')
            ? json_['mainCategory'] as core.String
            : null,
        maturityRating: json_.containsKey('maturityRating')
            ? json_['maturityRating'] as core.String
            : null,
        pageCount: json_.containsKey('pageCount')
            ? json_['pageCount'] as core.int
            : null,
        panelizationSummary: json_.containsKey('panelizationSummary')
            ? VolumeVolumeInfoPanelizationSummary.fromJson(
                json_['panelizationSummary']
                    as core.Map<core.String, core.dynamic>)
            : null,
        previewLink: json_.containsKey('previewLink')
            ? json_['previewLink'] as core.String
            : null,
        printType: json_.containsKey('printType')
            ? json_['printType'] as core.String
            : null,
        printedPageCount: json_.containsKey('printedPageCount')
            ? json_['printedPageCount'] as core.int
            : null,
        publishedDate: json_.containsKey('publishedDate')
            ? json_['publishedDate'] as core.String
            : null,
        publisher: json_.containsKey('publisher')
            ? json_['publisher'] as core.String
            : null,
        ratingsCount: json_.containsKey('ratingsCount')
            ? json_['ratingsCount'] as core.int
            : null,
        readingModes: json_.containsKey('readingModes')
            ? VolumeVolumeInfoReadingModes.fromJson(
                json_['readingModes'] as core.Map<core.String, core.dynamic>)
            : null,
        samplePageCount: json_.containsKey('samplePageCount')
            ? json_['samplePageCount'] as core.int
            : null,
        seriesInfo: json_.containsKey('seriesInfo')
            ? Volumeseriesinfo.fromJson(
                json_['seriesInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        subtitle: json_.containsKey('subtitle')
            ? json_['subtitle'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );