Feature.fromMap constructor

Feature.fromMap(
  1. Map map
)

Create Feature from YAML-compatible Map

Implementation

factory Feature.fromMap(Map<dynamic, dynamic> map) {
  return Feature(
    id: map['id'] ?? '',
    title: map['title'] ?? '',
    status: map['status'] ?? 'todo',
    description: map['description'] ?? '',
    files: List<String>.from(map['files'] ?? []),
    detailFile: map['detail_file'] as String?,
  );
}