toPayer method
Implementation
Payer toPayer() {
switch (this) {
case 'Requester':
return Payer.requester;
case 'BucketOwner':
return Payer.bucketOwner;
}
throw Exception('$this is not known in enum Payer');
}
Payer toPayer() {
switch (this) {
case 'Requester':
return Payer.requester;
case 'BucketOwner':
return Payer.bucketOwner;
}
throw Exception('$this is not known in enum Payer');
}