fixed enum serialization
This commit is contained in:
@@ -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