PricingInfo.fromJson constructor Null safety

PricingInfo.fromJson(
  1. Map _json
)

Implementation

PricingInfo.fromJson(core.Map _json)
    : this(
        aggregationInfo: _json.containsKey('aggregationInfo')
            ? AggregationInfo.fromJson(_json['aggregationInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        currencyConversionRate: _json.containsKey('currencyConversionRate')
            ? (_json['currencyConversionRate'] as core.num).toDouble()
            : null,
        effectiveTime: _json.containsKey('effectiveTime')
            ? _json['effectiveTime'] as core.String
            : null,
        pricingExpression: _json.containsKey('pricingExpression')
            ? PricingExpression.fromJson(_json['pricingExpression']
                as core.Map<core.String, core.dynamic>)
            : null,
        summary: _json.containsKey('summary')
            ? _json['summary'] as core.String
            : null,
      );