toPostArchiveStatus function
Implementation
PostArchiveStatus toPostArchiveStatus(int? index) {
switch (index) {
case 0:
return PostArchiveStatus.active;
case 1:
return PostArchiveStatus.archived;
}
return PostArchiveStatus.unknown;
}