fromString static method
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');
}
}