cake_wallet/lib/ionia/ionia_order.dart
2022-10-12 13:09:57 -04:00

23 lines
No EOL
599 B
Dart

import 'package:flutter/foundation.dart';
class IoniaOrder {
IoniaOrder({required this.id,
required this.uri,
required this.currency,
required this.amount,
required this.paymentId});
factory IoniaOrder.fromMap(Map<String, dynamic> obj) {
return IoniaOrder(
id: obj['order_id'] as String,
uri: obj['uri'] as String,
currency: obj['currency'] as String,
amount: obj['amount'] as double,
paymentId: obj['paymentId'] as String);
}
final String id;
final String uri;
final String currency;
final double amount;
final String paymentId;
}