@override String toJsonValue() { return value.fold(() => jsonEncode(null), (a) => jsonEncode(format('yyyy-MM-dd HH:mm:ss', a))); }