21 lines
465 B
Dart
21 lines
465 B
Dart
class CustomerMembership {
|
|
late int membershipId;
|
|
late int customerId;
|
|
late DateTime startDate;
|
|
|
|
|
|
CustomerMembership.fromJson(Map json) {
|
|
membershipId = json['membershipId'];
|
|
customerId = json['customerId'];
|
|
startDate = json['startDate'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"membershipId": membershipId,
|
|
"customerId": customerId,
|
|
"startDate": startDate,
|
|
};
|
|
|
|
@override
|
|
String toString() => toJson().toString();
|
|
} |