java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.gaurage.dto.DoServiceDto

Stack Overflow | Log.d | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    google gson LinkedTreeMap class cast to myclass

    Stack Overflow | 2 years ago | Log.d
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.gaurage.dto.DoServiceDto

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.gson.internal.LinkedTreeMap cannot be cast to com.gaurage.dto.DoServiceDto

      at com.gaurage.user.User_Test_Main.promiseMethod()
    2. com.gaurage.user
      User_Test_Main.promiseMethod
      1. com.gaurage.user.User_Test_Main.promiseMethod(Unknown Source)
      1 frame