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

10 lines
240 B
Dart

// ignore_for_file: prefer_final_parameters, prefer_expression_function_bodies
String dateTimeToJson(DateTime data) {
return data.toIso8601String();
}
DateTime dateTimeFromJson(dynamic data) {
return DateTime.parse(data as String);
}