mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-29 15:09:23 +00:00
23 lines
No EOL
599 B
Dart
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;
|
|
} |