toType static method

NERoomSessionTypeEnum toType(
  1. int? type
)

Implementation

static NERoomSessionTypeEnum toType(int? type) =>
    (NERoomSessionTypeEnum.values.firstWhere(
      (element) => element.index == type,
      orElse: () => NERoomSessionTypeEnum.None,
    ));