Commit 941b3744 authored by Dio Maulana's avatar Dio Maulana

add timezone model

parent 216e5850
...@@ -4,6 +4,7 @@ class AbsentSuccessModel { ...@@ -4,6 +4,7 @@ class AbsentSuccessModel {
String date; String date;
String time; String time;
String type; String type;
String timeZone;
AbsentSuccessModel({ AbsentSuccessModel({
required this.branchCode, required this.branchCode,
...@@ -11,6 +12,7 @@ class AbsentSuccessModel { ...@@ -11,6 +12,7 @@ class AbsentSuccessModel {
required this.date, required this.date,
required this.time, required this.time,
required this.type, required this.type,
required this.timeZone,
}); });
factory AbsentSuccessModel.json(Map<String, dynamic> json) { factory AbsentSuccessModel.json(Map<String, dynamic> json) {
...@@ -20,6 +22,7 @@ class AbsentSuccessModel { ...@@ -20,6 +22,7 @@ class AbsentSuccessModel {
date: json['date'], date: json['date'],
time: json['time'], time: json['time'],
type: json['type'], type: json['type'],
timeZone: json['time_zone'],
); );
} }
} }
...@@ -152,7 +152,7 @@ Sukses''', ...@@ -152,7 +152,7 @@ Sukses''',
), ),
), ),
Text( Text(
absentSuccess.time, "${absentSuccess.time} ${absentSuccess.timeZone}",
style: getSemiBoldStyle( style: getSemiBoldStyle(
color: ColorManager.fontBlack, color: ColorManager.fontBlack,
fontSize: FontSize.s20, fontSize: FontSize.s20,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment