OrderLineItemShippingDetailsMethod.fromJson constructor

OrderLineItemShippingDetailsMethod.fromJson(
  1. Map json_
)

Implementation

OrderLineItemShippingDetailsMethod.fromJson(core.Map json_)
    : this(
        carrier: json_.containsKey('carrier')
            ? json_['carrier'] as core.String
            : null,
        maxDaysInTransit: json_.containsKey('maxDaysInTransit')
            ? json_['maxDaysInTransit'] as core.int
            : null,
        methodName: json_.containsKey('methodName')
            ? json_['methodName'] as core.String
            : null,
        minDaysInTransit: json_.containsKey('minDaysInTransit')
            ? json_['minDaysInTransit'] as core.int
            : null,
      );