PaywayCreateTransactionResponse.fromMap constructor
PaywayCreateTransactionResponse.fromMap(
- Map<String, dynamic> map
)
Implementation
factory PaywayCreateTransactionResponse.fromMap(Map<String, dynamic> map) {
int _statusCode = -1;
if (map["status"] is int) {
_statusCode = map["status"];
}
if (map["status"] is Map) {
_statusCode = int.tryParse("${map["status"]["code"]}")!;
}
return PaywayCreateTransactionResponse(
status: _statusCode,
description: map["description"],
qrString: map["qrString"],
qrImage: map["qrImage"],
abapayDeeplink: map["abapay_deeplink"],
appStore: map["app_store"],
playStore: map["play_store"],
);
}