from method

RadarrFileSystemType? from(
  1. String? type
)

Given a String, will return the correct RadarrFileSystemType object.

Implementation

RadarrFileSystemType? from(String? type) {
    switch(type) {
        case 'folder': return RadarrFileSystemType.FOLDER;
        case 'file': return RadarrFileSystemType.FILE;
        default: return null;
    }
}