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