Price.fromJson constructor

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

Implementation

factory Price.fromJson(Map<String, Object?> json) => Price(
      currency: inttegro_money.Currency.fromJson(json["currency"]),
      value: (json["value"] as num).toInt(),
    );