// To parse this JSON data, do
//
//     final dropdownRespon = dropdownResponFromJson(jsonString);

import 'dart:convert';

DropdownRespon dropdownResponFromJson(String str) => DropdownRespon.fromJson(json.decode(str));

String dropdownResponToJson(DropdownRespon data) => json.encode(data.toJson());

class DropdownRespon {
  DropdownRespon({
    this.success,
    this.message,
    this.data,
  });

  bool? success;
  String? message;
  List<DataDropdown>? data;

  factory DropdownRespon.fromJson(Map<String, dynamic> json) => DropdownRespon(
    success: json["success"] == null ? null : json["success"],
    message: json["message"] == null ? null : json["message"],
    data: json["data"] == null ? null : List<DataDropdown>.from(json["data"].map((x) => DataDropdown.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "success": success == null ? null : success,
    "message": message == null ? null : message,
    "data": data == null ? null : List<dynamic>.from(data!.map((x) => x.toJson())),
  };
}

class DataDropdown {
  DataDropdown({
    this.id,
    this.nama,
    this.selected = false
  });

  String? id;
  String? nama;
  bool selected;

  factory DataDropdown.fromJson(Map<String, dynamic> json) => DataDropdown(
    id: json["id"] == null ? null : json["id"],
    nama: json["nama"] == null ? null : json["nama"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "nama": nama == null ? null : nama,
  };
}
