DateTime? decodeDateTime(int? json) { if (json == null) return null; return DateTime.fromMillisecondsSinceEpoch(json * 1000); }