toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'brand': brand,
    'last_4': last4,
    'exp_year': expYear,
    'exp_month': expMonth,
    'name': name,
    'address_zip': addressZip,
  };
}