diff --git a/README.md b/README.md index ffb0f14..329c02c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Workout Test and Diet 4 You Common Util Functions -### Version 1.0.26 +### Version 1.0.27 -- no more webapi +- customer_membership end_date ### Version 1.0.25 diff --git a/lib/model/customer_membership.dart b/lib/model/customer_membership.dart index 408557b..0f7b004 100644 --- a/lib/model/customer_membership.dart +++ b/lib/model/customer_membership.dart @@ -4,17 +4,20 @@ class CustomerMembership { late int membershipId; int? customerId; DateTime? startDate; + DateTime? endDate; CustomerMembership.fromJson(Map json) { membershipId = json['membershipId']; customerId = json['customerId'] ?? 0; startDate = json['startDate'] == null ? null : DateTime.parse(json['startDate']); + endDate = json['endDate'] == null ? null : DateTime.parse(json['endDate']); } Map toJson() => { "membershipId": membershipId, "customerId": customerId ?? 0, "startDate": startDate == null ? "" : DateFormat('yyyy-MM-dd HH:mm:ss').format(startDate!), + "endDate": startDate == null ? "" : DateFormat('yyyy-MM-dd HH:mm:ss').format(endDate!), }; @override diff --git a/pubspec.yaml b/pubspec.yaml index 60368fc..d9c88e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: workouttest_util description: Workout Test app and web functions. -version: 1.0.27 +version: 1.0.28 environment: sdk: ">=2.18.6 <3.0.0"