VolumeUserInfo.fromJson constructor

VolumeUserInfo.fromJson(
  1. Map json_
)

Implementation

VolumeUserInfo.fromJson(core.Map json_)
    : this(
        acquiredTime: json_.containsKey('acquiredTime')
            ? json_['acquiredTime'] as core.String
            : null,
        acquisitionType: json_.containsKey('acquisitionType')
            ? json_['acquisitionType'] as core.int
            : null,
        copy: json_.containsKey('copy')
            ? VolumeUserInfoCopy.fromJson(
                json_['copy'] as core.Map<core.String, core.dynamic>)
            : null,
        entitlementType: json_.containsKey('entitlementType')
            ? json_['entitlementType'] as core.int
            : null,
        familySharing: json_.containsKey('familySharing')
            ? VolumeUserInfoFamilySharing.fromJson(
                json_['familySharing'] as core.Map<core.String, core.dynamic>)
            : null,
        isFamilySharedFromUser: json_.containsKey('isFamilySharedFromUser')
            ? json_['isFamilySharedFromUser'] as core.bool
            : null,
        isFamilySharedToUser: json_.containsKey('isFamilySharedToUser')
            ? json_['isFamilySharedToUser'] as core.bool
            : null,
        isFamilySharingAllowed: json_.containsKey('isFamilySharingAllowed')
            ? json_['isFamilySharingAllowed'] as core.bool
            : null,
        isFamilySharingDisabledByFop:
            json_.containsKey('isFamilySharingDisabledByFop')
                ? json_['isFamilySharingDisabledByFop'] as core.bool
                : null,
        isInMyBooks: json_.containsKey('isInMyBooks')
            ? json_['isInMyBooks'] as core.bool
            : null,
        isPreordered: json_.containsKey('isPreordered')
            ? json_['isPreordered'] as core.bool
            : null,
        isPurchased: json_.containsKey('isPurchased')
            ? json_['isPurchased'] as core.bool
            : null,
        isUploaded: json_.containsKey('isUploaded')
            ? json_['isUploaded'] as core.bool
            : null,
        readingPosition: json_.containsKey('readingPosition')
            ? ReadingPosition.fromJson(json_['readingPosition']
                as core.Map<core.String, core.dynamic>)
            : null,
        rentalPeriod: json_.containsKey('rentalPeriod')
            ? VolumeUserInfoRentalPeriod.fromJson(
                json_['rentalPeriod'] as core.Map<core.String, core.dynamic>)
            : null,
        rentalState: json_.containsKey('rentalState')
            ? json_['rentalState'] as core.String
            : null,
        review: json_.containsKey('review')
            ? Review.fromJson(
                json_['review'] as core.Map<core.String, core.dynamic>)
            : null,
        updated: json_.containsKey('updated')
            ? json_['updated'] as core.String
            : null,
        userUploadedVolumeInfo: json_.containsKey('userUploadedVolumeInfo')
            ? VolumeUserInfoUserUploadedVolumeInfo.fromJson(
                json_['userUploadedVolumeInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );