fromString static method

OsrmContinueStraight fromString(
  1. String continueStraight
)

fromString method to get the OsrmContinueStraight from a string

Implementation

static OsrmContinueStraight fromString(String continueStraight) {
  switch (continueStraight) {
    case 'default':
      return OsrmContinueStraight.default_;
    case 'true':
      return OsrmContinueStraight.true_;
    case 'false':
      return OsrmContinueStraight.false_;
    default:
      throw ArgumentError('Invalid continueStraight: $continueStraight');
  }
}