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,
      );