v1.0.27
This commit is contained in:
parent
16603f00bd
commit
928396112a
@ -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
|
||||
|
||||
|
@ -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<String, dynamic> 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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user