how to retrieve a list of response from the model and display it in a dropdownbutton2 in flutter

I was using this plugin nigerian_states_and_lga: to display a list of states and their local governments in my app until today that the backend team decided to come up with their own API that they developed for that and I am finding it difficult to implement it. What I did was that when you select on a state, another dropdownbutton will display the local government based on the state that was selected. Now they want me to do the same thing using their own API. They want the first dropdownbutton to display a list of all the states as contained in their API and when the user select on any state, the Id of that state should be picked and then used in querying another endpoint that returns a list of local government based on the state Id that was passed and display the list of those local government immediately in the seconde dropdownbutton.
The model class here is the format for the API response and this dropdownbutton2 is the one that I did with the plugins so I am looking for the way to substitute this with the new approach that they demand.

String stateValue = NigerianStatesAndLGA.allStates[0];
  String lgaValue = 'Select a Local Government Area';
  String selectedLGAFromAllLGAs = NigerianStatesAndLGA.getAllNigerianLGAs()[0];
  List<String> statesLga = [];


Widget buildStateAndLgaDropDownButton(){
    return Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Text(
            'Select a state',
            style: GoogleFonts.inter(
              fontSize: 14.0,
              color: Colors.black,
              height: 1.0,
            ),
          ),
          const SizedBox(
            height: 8,
          ),
          Container(

            height: 50,
            width: MediaQuery.of(context).size.width,
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.circular(8),
                border: Border.all(color: Colors.black.withOpacity(0.6))
            ),
            child: DropdownButtonHideUnderline(
              child: DropdownButton2<String>(
                key: const ValueKey('States'),
                value: stateValue,
                isExpanded: true,
                hint: const Text('Select a state'),
                items: NigerianStatesAndLGA.allStates
                    .map<DropdownMenuItem<String>>((String value) {
                  return DropdownMenuItem<String>(
                    value: value,
                    child: Text(value,
                        style: GoogleFonts.inter(
                          fontSize: 14.0,
                          color: Colors.black,
                          height: 1.0,
                        )),
                  );
                }).toList(),
                onChanged: (val) {
                  lgaValue = 'Select a Local Government Area';
                  statesLga.clear();
                  statesLga.add(lgaValue);
                  statesLga.addAll(NigerianStatesAndLGA.getStateLGAs(val!));
                  setState(() {
                    stateValue = val;
                  });
                },

                buttonStyleData:  ButtonStyleData(
                  padding: const EdgeInsets.symmetric(horizontal: 16),
                  height: 50,
                  width: MediaQuery.of(context).size.width,
                ),
                dropdownStyleData: DropdownStyleData(
                  maxHeight: 200,
                  isOverButton: true,
                  decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.all(Radius.circular(10)),
                      boxShadow: [
                        BoxShadow(
                            color: Colors.black.withOpacity(0.05),
                            spreadRadius: 2,
                            blurRadius: 3,
                            offset: Offset(0, 3))
                      ]),
                ),
                menuItemStyleData: const MenuItemStyleData(
                  height: 40,
                ),
              ),
            ),
          ),
          const SizedBox(
            height: 20,
          ),
          Container(
            height: 50,
            width: MediaQuery.of(context).size.width,
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.circular(8),
                border: Border.all(color: Colors.black.withOpacity(0.6))
            ),
            child: DropdownButtonHideUnderline(
              child: DropdownButton2<String>(
                key: const ValueKey('Local governments'),
                value: lgaValue,
                isExpanded: true,
                hint: const Text('Select a Lga'),
                items:
                statesLga.map<DropdownMenuItem<String>>((String value) {
                  return DropdownMenuItem<String>(
                    value: value,
                    child: Text(value,
                      style: GoogleFonts.inter(
                        fontSize: 14.0,
                        color: Colors.black,
                        height: 1.0,
                      ),),
                  );
                }).toList(),
                onChanged: (val) {
                  setState(() {
                    lgaValue = val!;
                  });
                },

                buttonStyleData:  ButtonStyleData(
                  padding: const EdgeInsets.symmetric(horizontal: 16),
                  height: 50,
                  width: MediaQuery.of(context).size.width,
                ),
                dropdownStyleData: DropdownStyleData(
                  maxHeight: 200,
                  isOverButton: true,
                  decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.all(Radius.circular(10)),
                      boxShadow: [
                        BoxShadow(
                            color: Colors.black.withOpacity(0.05),
                            spreadRadius: 2,
                            blurRadius: 3,
                            offset: Offset(0, 3))
                      ]),
                ),
                menuItemStyleData: const MenuItemStyleData(
                  height: 40,
                ),

              ),
            ),
          ),

        ]);
  }

class StateResponse{
  int? code;
  String? message;
  String? title;
  List<StateData>? data;

  StateResponse(this.code,this.title,this.message,this.data);

  StateResponse.fromJson(Map<String,dynamic>json){
    code = json['code'];
    message = json['message'];
    title = json['title'];
    if(json['data'] !=null){
      data = [];
      json['data'].forEach((e){
        data!.add(StateData.fromJson(e));
      });
      }
    }
  }
class StateData{
  int? id;
  String? name;
  int? countryId;

  StateData(this.id,this.name,this.countryId);

  StateData.fromJson(Map<String,dynamic>json){
    id=json['id'];
    name = json['name'];
    countryId = json['country_id'];
  }
}

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật