@override DateTime? fromJson(String? json) { if (json == null || json.isEmpty) { return null; } return DateTime.parse(json); }