dev
dart 10 lines 326 Bytes
Raw
1 class AnyPayPaymentInstructionOutput {
2 const AnyPayPaymentInstructionOutput(this.address, this.amount);
3
4 factory AnyPayPaymentInstructionOutput.fromMap(Map<String, dynamic> obj) {
5 return AnyPayPaymentInstructionOutput(obj['address'] as String, obj['amount'] as int);
6 }
7
8 final String address;
9 final int amount;
10 }