toCommitment method
Implementation
Commitment toCommitment() {
switch (this) {
case 'ONE_YEAR':
return Commitment.oneYear;
}
throw Exception('$this is not known in enum Commitment');
}
Commitment toCommitment() {
switch (this) {
case 'ONE_YEAR':
return Commitment.oneYear;
}
throw Exception('$this is not known in enum Commitment');
}