toAttachmentsSourceKey method

AttachmentsSourceKey toAttachmentsSourceKey()

Implementation

AttachmentsSourceKey toAttachmentsSourceKey() {
  switch (this) {
    case 'SourceUrl':
      return AttachmentsSourceKey.sourceUrl;
    case 'S3FileUrl':
      return AttachmentsSourceKey.s3FileUrl;
    case 'AttachmentReference':
      return AttachmentsSourceKey.attachmentReference;
  }
  throw Exception('$this is not known in enum AttachmentsSourceKey');
}