workouttest_util/lib/model/customer_membership.dart
Tibor Bossanyi 56ada3c774 v1.0.6
2023-02-18 16:14:19 +01:00

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();
}