ChoiceItem.fromMap constructor

ChoiceItem.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ChoiceItem.fromMap(Map<String, dynamic> map) {
  return ChoiceItem(
    id: map['id'] ?? '',
    text: map['text'] ?? '',
  );
}