Select.fromJson constructor
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,
);
}