DateTime? getDateTime(String key, {DateTime? defaultValue}) { final micros = getInt(key); if (micros == null) return defaultValue; return DateTime.fromMicrosecondsSinceEpoch(micros, isUtc: true); }