2020-09-18 04:04:21 +06:30
|
|
|
class PaymentMethod {
|
2021-09-10 14:27:38 +06:30
|
|
|
String? id;
|
|
|
|
|
String? name;
|
|
|
|
|
String? accountName;
|
|
|
|
|
String? account;
|
|
|
|
|
String? phone;
|
|
|
|
|
String? email;
|
|
|
|
|
String? link;
|
2020-09-18 04:04:21 +06:30
|
|
|
|
|
|
|
|
PaymentMethod(
|
|
|
|
|
{this.id,
|
|
|
|
|
this.name,
|
|
|
|
|
this.accountName,
|
|
|
|
|
this.account,
|
|
|
|
|
this.phone,
|
|
|
|
|
this.email,
|
|
|
|
|
this.link});
|
|
|
|
|
|
|
|
|
|
factory PaymentMethod.fromMap(Map<String, dynamic> map, String id) {
|
|
|
|
|
return PaymentMethod(
|
|
|
|
|
id: id,
|
|
|
|
|
name: map['name'],
|
|
|
|
|
accountName: map['account_name'],
|
|
|
|
|
account: map['account'],
|
|
|
|
|
phone: map['phone'],
|
|
|
|
|
email: map['email'],
|
|
|
|
|
link: map['link'],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toMap() {
|
|
|
|
|
return {
|
|
|
|
|
'id': id,
|
|
|
|
|
'name': name,
|
|
|
|
|
"account_name": accountName,
|
|
|
|
|
"account": account,
|
|
|
|
|
"phone": phone,
|
|
|
|
|
"email": email,
|
|
|
|
|
"link": link,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|