VolumeSaleInfo.fromJson constructor

VolumeSaleInfo.fromJson(
  1. Map json_
)

Implementation

VolumeSaleInfo.fromJson(core.Map json_)
    : this(
        buyLink: json_.containsKey('buyLink')
            ? json_['buyLink'] as core.String
            : null,
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        isEbook: json_.containsKey('isEbook')
            ? json_['isEbook'] as core.bool
            : null,
        listPrice: json_.containsKey('listPrice')
            ? VolumeSaleInfoListPrice.fromJson(
                json_['listPrice'] as core.Map<core.String, core.dynamic>)
            : null,
        offers: json_.containsKey('offers')
            ? (json_['offers'] as core.List)
                .map((value) => VolumeSaleInfoOffers.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        onSaleDate: json_.containsKey('onSaleDate')
            ? json_['onSaleDate'] as core.String
            : null,
        retailPrice: json_.containsKey('retailPrice')
            ? VolumeSaleInfoRetailPrice.fromJson(
                json_['retailPrice'] as core.Map<core.String, core.dynamic>)
            : null,
        saleability: json_.containsKey('saleability')
            ? json_['saleability'] as core.String
            : null,
      );