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