ProductShippingDimension.fromJson constructor

ProductShippingDimension.fromJson(
  1. Map json_
)

Implementation

ProductShippingDimension.fromJson(core.Map json_)
    : this(
        unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
        value: json_.containsKey('value')
            ? (json_['value'] as core.num).toDouble()
            : null,
      );