selfprivacy.org.app/lib/utils/scalars.dart

10 lines
240 B
Dart
Raw Normal View History

2022-07-13 11:58:23 +00:00
// ignore_for_file: prefer_final_parameters, prefer_expression_function_bodies
2022-07-12 12:54:16 +00:00
String dateTimeToJson(DateTime data) {
return data.toIso8601String();
}
DateTime dateTimeFromJson(dynamic data) {
return DateTime.parse(data as String);
}