encode static method

String encode(
  1. TaskStatus value
)

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';
		}
}