DateTime? parseMilliseconds(int? milliseconds) { DateTime? date; if (milliseconds != null) { date = DateTime.fromMillisecondsSinceEpoch(milliseconds); } return date; }