fromValue static method

FCMProcessingMode fromValue(
  1. String value
)

Implementation

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