toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {
'pg': pg,
'method': method,
'wallet_id': walletId,
'currency': currency,
'term_passed': termPassed,
'completed': completed,
'extra': extra?.toJson(),
'method_origin_symbol': methodOriginSymbol,
'method_symbol': methodSymbol,
'easy_pay': easyPay,
'card_quota': cardQuota,
};
if (selectTerms != null) {
result["select_terms"] = selectTerms?.map((e) => e.toJson()).toList();
}
return result;
}