Amount.fromJson constructor

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

Implementation

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