from method

RadarrImportMode? from(
  1. String? type
)

Given a String, will return the correct RadarrImportMode object.

Implementation

RadarrImportMode? from(String? type) {
    switch(type) {
        case 'copy': return RadarrImportMode.COPY;
        case 'move': return RadarrImportMode.MOVE;
        default: return null;
    }
}