toPayer method

Payer toPayer()

Implementation

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