v1.0.6
This commit is contained in:
parent
f44df32f93
commit
56ada3c774
3
.gitignore
vendored
3
.gitignore
vendored
@ -28,4 +28,5 @@ migrate_working_dir/
|
||||
.dart_tool/
|
||||
.packages
|
||||
build/
|
||||
.flutter-plugins-dependencies*
|
||||
.flutter-plugins-dependencies
|
||||
.flutter-plugins
|
@ -1,5 +1,8 @@
|
||||
Workout Test and Diet 4 You Common Util Functions
|
||||
|
||||
Version 1.0.6
|
||||
membership, customer_membership
|
||||
|
||||
Version 1.0.5
|
||||
number picker widget
|
||||
|
||||
|
21
lib/model/customer_membership.dart
Normal file
21
lib/model/customer_membership.dart
Normal file
@ -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();
|
||||
}
|
36
lib/model/membership.dart
Normal file
36
lib/model/membership.dart
Normal file
@ -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();
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
name: workouttest_util
|
||||
description: Workout Test app and web functions.
|
||||
version: 1.0.5
|
||||
version: 1.0.6
|
||||
homepage:
|
||||
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user