| 1 | class OpenCryptoPayRequest { |
| 2 | final String receiverName; |
| 3 | final int expiry; |
| 4 | final String callbackUrl; |
| 5 | final String quote; |
| 6 | final Map<String, List<OpenCryptoPayQuoteAsset>> methods; |
| 7 | |
| 8 | OpenCryptoPayRequest({ |
| 9 | required this.receiverName, |
| 10 | required this.expiry, |
| 11 | required this.callbackUrl, |
| 12 | required this.quote, |
| 13 | required this.methods, |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | class OpenCryptoPayQuoteAsset { |
| 18 | final String symbol; |
| 19 | final String amount; |
| 20 | |
| 21 | const OpenCryptoPayQuoteAsset(this.symbol, this.amount); |
| 22 | |
| 23 | OpenCryptoPayQuoteAsset.fromJson(Map<String, dynamic> json) |
| 24 | : symbol = json['asset'] as String, |
| 25 | amount = json['amount'] as String; |
| 26 | } |