Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
quan0715 committed May 30, 2023
2 parents fbf48f9 + 84d1522 commit 7106c99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/model/car_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CarModel {
endLoc: '桃園高鐵站',
personNumLimit: 5,
genderLimit: 0,
personStuIds: [launchStuId],
personStuIds: [launchStuId],
);

factory CarModel.fromJson(Map<String, dynamic> json) {
Expand All @@ -89,9 +89,9 @@ class CarModel {
roomTitle: json['roomTitle'] as String,
launchStuId: json['launchStuId'].toString(),
remark: json['remark'] as String,
startTime: DateTime.tryParse(json['startTime'] as String) as DateTime,
startTime: DateTime.tryParse(json['startTime'] as String)!.toLocal(),
startLoc: json['startLoc'] as String,
endTime: DateTime.tryParse(json['endTime'] as String) as DateTime,
endTime: DateTime.tryParse(json['endTime'] as String)!.toLocal(),
endLoc: json['endLoc'] as String,
personNumLimit: json['personNumLimit'] as int,
genderLimit: json['genderLimit'] as int,
Expand Down

0 comments on commit 7106c99

Please sign in to comment.