encode static method
Implementation
static String encode(TaskStatus value) {
switch (value) {
case TaskStatus.pending:
return 'pending';
case TaskStatus.ongoing:
return 'ongoing';
case TaskStatus.cancelled:
return 'cancelled';
case TaskStatus.completed:
return 'completed';
}
}