mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-02 23:17:17 +00:00
10 lines
240 B
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);
|
|
}
|