AddPriceRequest.fromJson constructor

AddPriceRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AddPriceRequest.fromJson(Map<String, Object?> json) =>
    AddPriceRequest(
      label: json["label"] == null ? null : json["label"] as String,
      about: json["about"] == null ? null : json["about"] as String,
      productId: json["product_id"] as String,
      amount: inttegro_money.AmountParams.fromJson(
        (json["amount"] as Map).cast<String, Object?>(),
      ),
    );