(profileType: string)
| 141 | } |
| 142 | |
| 143 | static fromString(profileType: string): ProfileType { |
| 144 | const str = profileType.toString(); |
| 145 | const parts = str.split(':'); |
| 146 | if (parts.length !== 5 && parts.length !== 6) { |
| 147 | throw new Error('Invalid profile type: ' + str); |
| 148 | } |
| 149 | return new ProfileType(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5] === 'delta'); |
| 150 | } |
| 151 | |
| 152 | toString(): string { |
| 153 | if ( |
no test coverage detected