VolumeSaleInfoOffers.fromJson constructor

VolumeSaleInfoOffers.fromJson(
  1. Map json_
)

Implementation

VolumeSaleInfoOffers.fromJson(core.Map json_)
    : this(
        finskyOfferType: json_.containsKey('finskyOfferType')
            ? json_['finskyOfferType'] as core.int
            : null,
        giftable: json_.containsKey('giftable')
            ? json_['giftable'] as core.bool
            : null,
        listPrice: json_.containsKey('listPrice')
            ? VolumeSaleInfoOffersListPrice.fromJson(
                json_['listPrice'] as core.Map<core.String, core.dynamic>)
            : null,
        rentalDuration: json_.containsKey('rentalDuration')
            ? VolumeSaleInfoOffersRentalDuration.fromJson(
                json_['rentalDuration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        retailPrice: json_.containsKey('retailPrice')
            ? VolumeSaleInfoOffersRetailPrice.fromJson(
                json_['retailPrice'] as core.Map<core.String, core.dynamic>)
            : null,
      );