toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
    "type": type == null ? null : cardtypeValues.reverse[type],
    "number": number,
    "month": month,
    "year": year,
    "cvv": cvv,
};