toJSON method

  1. @override
Map<String, dynamic> toJSON()

Implementation

@override
Map<String, dynamic> toJSON() {
  return {
    'number': details.number,
    'code': details.cvc,
    'expiry': {
      'month': expiry.month,
      'year': expiry.year,
    }
  };
}