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