toTrustType method
Implementation
TrustType toTrustType() {
switch (this) {
case 'Forest':
return TrustType.forest;
case 'External':
return TrustType.external;
}
throw Exception('$this is not known in enum TrustType');
}
TrustType toTrustType() {
switch (this) {
case 'Forest':
return TrustType.forest;
case 'External':
return TrustType.external;
}
throw Exception('$this is not known in enum TrustType');
}