cake_wallet/lib/ionia/ionia_order.dart

23 lines
605 B
Dart
Raw Normal View History

2022-06-20 19:27:28 +00:00
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['payment_id'] as String);
}
final String id;
final String uri;
final String currency;
final double amount;
final String paymentId;
}