toJson method

Map<String, dynamic> toJson()

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(),
  };

  if (selectTerms != null) {
    result["select_terms"] = selectTerms?.map((e) => e.toJson()).toList();
  }

  return result;
}