toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (type != null) {
_json[r'type'] = type;
}
if (lastFour != null) {
_json[r'last_four'] = lastFour;
}
if (expMonth != null) {
_json[r'exp_month'] = expMonth;
}
if (expYear != null) {
_json[r'exp_year'] = expYear;
}
if (cardBrand != null) {
_json[r'card_brand'] = cardBrand;
}
if (name != null) {
_json[r'name'] = name;
}
return _json;
}