CancelFlowQuestion.fromMap constructor
CancelFlowQuestion.fromMap(
- Map<String, dynamic> map
)
Implementation
factory CancelFlowQuestion.fromMap(Map<String, dynamic> map) {
return CancelFlowQuestion(
id: map['id'] as int,
order: map['order'] as int,
questionText: map['questionText'] as String,
questionType: map['questionType'] as String,
isRequired: map['isRequired'] as bool,
options: (map['options'] as List?)
?.map((e) => CancelFlowOption.fromMap(Map<String, dynamic>.from(e as Map)))
.toList() ??
[],
);
}