Getting error in this line

Getting error in this line

mp.put("Lead",allleadtime.get(0).get("id")); 

when I add above code, it gives error like this-
  • Argument type mismatch - Found 'DATE-TIME' but Expected '[KEY-VALUE, TEXT, LIST]' for the function 'get' Line Number:32