v1.0.6
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
class Membership {
|
||||
late int membershipId;
|
||||
late String name;
|
||||
late String description;
|
||||
late int duration;
|
||||
late String durationType;
|
||||
late String durationUnit;
|
||||
int? trainingPlanId;
|
||||
String? trainingPlanDayIds;
|
||||
|
||||
|
||||
Membership.fromJson(Map json) {
|
||||
membershipId = json['membershipId'];
|
||||
name = json['name'];
|
||||
description = json['description'];
|
||||
duration = json['duration'];
|
||||
durationUnit = json['durationUnit'];
|
||||
durationType = json['durationType'];
|
||||
trainingPlanId = json['trainingPlanId'];
|
||||
trainingPlanDayIds = json['trainingPlanDayIds'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"membershipId": membershipId,
|
||||
"name": name,
|
||||
"description": description,
|
||||
"duration": duration,
|
||||
"durationUnit": durationUnit,
|
||||
"durationType": durationType,
|
||||
"trainingPlanId": trainingPlanId,
|
||||
"trainingPlanDayIds": trainingPlanDayIds,
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() => toJson().toString();
|
||||
}
|
||||
Reference in New Issue
Block a user