CreditNoteShippingCost.fromJson constructor

CreditNoteShippingCost.fromJson(
  1. Object? json
)

Implementation

factory CreditNoteShippingCost.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CreditNoteShippingCost(
      shippingRate: map['shipping_rate'] == null
          ? null
          : (map['shipping_rate'] as String));
}