toTrustType method

TrustType toTrustType()

Implementation

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