fromValue static method

SCSwipeOffBehaviour fromValue(
  1. String value
)

Implementation

static SCSwipeOffBehaviour fromValue(String value) {
  switch (value) {
    case 'endCall':
      return SCSwipeOffBehaviour.endCall;
    case 'persistCall':
      return SCSwipeOffBehaviour.persistCall;
    default:
      SignedCallLogger.d(
          '$value is not a valid value for SCSwipeOffBehaviour.');
      return SCSwipeOffBehaviour.persistCall;
  }
}