You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
802 B

class SilverPurchaseRequest {
int coinamount;
String method;
double amount;
SilverPurchaseRequest({
this.coinamount,
this.method,
this.amount,
});
factory SilverPurchaseRequest.fromJSON(Map<String, dynamic> json) {
return SilverPurchaseRequest(
coinamount: json["coinamount"],
method: json["method"],
amount: json["amount"],
);
}
Map<dynamic, dynamic> toJson() {
final Map<dynamic, dynamic> data = Map<dynamic, dynamic>();
try {
data['coinamount'] = this.coinamount;
data['method'] = this.method;
data['amount'] = this.amount;
} catch (e) {
print(e);
}
return data;
}
@override
String toString() {
return '{"coinamount": "$coinamount", "costamount": "$amount", "method": "$method"}';
}
}