from method

RadarrCreditType? from(
  1. String? type
)

Given a String, will return the correct RadarrCreditType object.

Implementation

RadarrCreditType? from(String? type) {
    switch(type) {
        case 'crew': return RadarrCreditType.CREW;
        case 'cast': return RadarrCreditType.CAST;
        default: return null;
    }
}