ShippingRateOrId.fromJson constructor

ShippingRateOrId.fromJson(
  1. Object? json
)

Implementation

factory ShippingRateOrId.fromJson(Object? json) {
  if (json is String) {
    return ShippingRateId(id: json);
  }
  return ShippingRate.fromJson(json);
}