DiscountsResourceDiscountAmountDiscountOrId.fromJson constructor

DiscountsResourceDiscountAmountDiscountOrId.fromJson(
  1. Object? json
)

Implementation

factory DiscountsResourceDiscountAmountDiscountOrId.fromJson(Object? json) {
  if (json is String) {
    return DiscountsResourceDiscountAmountDiscountId(id: json);
  }
  return DiscountsResourceDiscountAmountDiscount.fromJson(json);
}