Amount.fromJson constructor

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

Implementation

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