RateDetails.fromJson constructor

RateDetails.fromJson(
  1. Map json_
)

Implementation

RateDetails.fromJson(core.Map json_)
    : this(
        inventorySourceRateType: json_.containsKey('inventorySourceRateType')
            ? json_['inventorySourceRateType'] as core.String
            : null,
        minimumSpend: json_.containsKey('minimumSpend')
            ? Money.fromJson(
                json_['minimumSpend'] as core.Map<core.String, core.dynamic>)
            : null,
        rate: json_.containsKey('rate')
            ? Money.fromJson(
                json_['rate'] as core.Map<core.String, core.dynamic>)
            : null,
        unitsPurchased: json_.containsKey('unitsPurchased')
            ? json_['unitsPurchased'] as core.String
            : null,
      );