fixed enum serialization
This commit is contained in:
1 parent
6778b6426f
commit
cd97dada2a
3 files changed
+3
-3
No files matched your search
@@ -24,7 +24,7 @@ class FixedTimeAlarm implements Alarm {
|
|||||||
return {
|
return {
|
||||||
'id': id,
|
'id': id,
|
||||||
'triggerAt': triggerAt.toIso8601String(),
|
'triggerAt': triggerAt.toIso8601String(),
|
||||||
'alarmType': alarmType,
|
'alarmType': alarmType.toJson(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ class LocationAlarm implements Alarm {
|
|||||||
'id': id,
|
'id': id,
|
||||||
'location': location.toJson(),
|
'location': location.toJson(),
|
||||||
'radiusMeters': radiusMeters,
|
'radiusMeters': radiusMeters,
|
||||||
'alarmType': alarmType,
|
'alarmType': alarmType.toJson(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ class RelativeTimeAlarm implements Alarm {
|
|||||||
return {
|
return {
|
||||||
'id': id,
|
'id': id,
|
||||||
'triggerAt': triggerAt.toIso8601String(),
|
'triggerAt': triggerAt.toIso8601String(),
|
||||||
'alarmType': alarmType,
|
'alarmType': alarmType.toJson(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user