toValue method
Implementation
String toValue() {
switch (this) {
case Permissions.owner:
return 'owner';
case Permissions.readWrite:
return 'read-write';
case Permissions.readOnly:
return 'read-only';
}
}
String toValue() {
switch (this) {
case Permissions.owner:
return 'owner';
case Permissions.readWrite:
return 'read-write';
case Permissions.readOnly:
return 'read-only';
}
}