Flutter model class parse json to model with http request. parse Complex JSON

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

ความคิดเห็น • 20

  • @wavemusic7153
    @wavemusic7153 3 ปีที่แล้ว

    Can we call the api method without using .then method

    • @ShajedulIslamShawon
      @ShajedulIslamShawon  3 ปีที่แล้ว

      Yes

    • @wavemusic7153
      @wavemusic7153 3 ปีที่แล้ว

      How

    • @wavemusic7153
      @wavemusic7153 3 ปีที่แล้ว

      @@ShajedulIslamShawon can you give me the code or idea how to do that

    • @mdshawon6232
      @mdshawon6232 3 ปีที่แล้ว

      _post = Service.getPost();
      setState((){
      loading = false;
      });
      Like this

    • @wavemusic7153
      @wavemusic7153 3 ปีที่แล้ว

      @@mdshawon6232 i have done like this it is giving me the error

  • @ezone2726
    @ezone2726 4 ปีที่แล้ว

    I got error....the errror is getter length was called on null.
    Recieved null
    Tried calling null
    How to solve ?
    Please suggest what to do!
    Thank you for creating awesome video!

    • @ShajedulIslamShawon
      @ShajedulIslamShawon  4 ปีที่แล้ว

      are u initial in initstate with loading. there have no issue for comming error. please check your code for any mistake.

    • @ezone2726
      @ezone2726 4 ปีที่แล้ว

      @@ShajedulIslamShawon yes i am using and what you did i had done exactly!

  • @gori855
    @gori855 4 ปีที่แล้ว +1

    Hey can you tell me how json parsing is done for multiple lists in an object

    • @ShajedulIslamShawon
      @ShajedulIslamShawon  4 ปีที่แล้ว +1

      check this. medium.com/flutter-community/parsing-complex-json-in-flutter-747c46655f51

    • @gori855
      @gori855 4 ปีที่แล้ว +1

      @@ShajedulIslamShawon Thank you so much for this article. It is of great help indeed.