38 lines
811 B
Dart
38 lines
811 B
Dart
class PaymentMethodModel {
|
|
// late int sort;
|
|
late String method;
|
|
late String methodTitle;
|
|
late String description;
|
|
|
|
PaymentMethodModel({
|
|
// required this.sort,
|
|
required this.method,
|
|
required this.methodTitle,
|
|
required this.description,
|
|
});
|
|
|
|
PaymentMethodModel.fromJson(Map<String, dynamic> json) {
|
|
method = json['method'];
|
|
methodTitle = json['method_title'];
|
|
description = json['description'];
|
|
}
|
|
}
|
|
|
|
class CartPaymentMethodModel {
|
|
late int id;
|
|
late String method;
|
|
late String methodTitle;
|
|
|
|
CartPaymentMethodModel({
|
|
required this.id,
|
|
required this.method,
|
|
required this.methodTitle,
|
|
});
|
|
|
|
CartPaymentMethodModel.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
method = json['method'];
|
|
methodTitle = json['method_title'];
|
|
}
|
|
}
|