Price.fromJson constructor

Price.fromJson(
  1. Map json_
)

Implementation

Price.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? Money.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>)
            : null,
        pricingType: json_.containsKey('pricingType')
            ? json_['pricingType'] as core.String
            : null,
      );