Select.fromJson constructor

Select.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Select.fromJson(Map<String, dynamic> json) {
  return Select(
    selectID: json['selectID'] ?? 0, // Varsayılan bir değer
    title: json['title'] ?? '',
    value: json['value'],
    selectionList: json['selectionList'],
    // selectionList: json['selectionList'] != null
    //     ? (json['selectionList'] as List)
    //         .map((e) => Selection.fromJson(e as Map<String, dynamic>))
    //         .toList()
    //         .obs // RxList<Selection> oluşturmak için
    //     : null,
  );
}