toSalesforceStandardObjectName method
Implementation
SalesforceStandardObjectName toSalesforceStandardObjectName() {
switch (this) {
case 'ACCOUNT':
return SalesforceStandardObjectName.account;
case 'CAMPAIGN':
return SalesforceStandardObjectName.campaign;
case 'CASE':
return SalesforceStandardObjectName.$case;
case 'CONTACT':
return SalesforceStandardObjectName.contact;
case 'CONTRACT':
return SalesforceStandardObjectName.contract;
case 'DOCUMENT':
return SalesforceStandardObjectName.document;
case 'GROUP':
return SalesforceStandardObjectName.group;
case 'IDEA':
return SalesforceStandardObjectName.idea;
case 'LEAD':
return SalesforceStandardObjectName.lead;
case 'OPPORTUNITY':
return SalesforceStandardObjectName.opportunity;
case 'PARTNER':
return SalesforceStandardObjectName.partner;
case 'PRICEBOOK':
return SalesforceStandardObjectName.pricebook;
case 'PRODUCT':
return SalesforceStandardObjectName.product;
case 'PROFILE':
return SalesforceStandardObjectName.profile;
case 'SOLUTION':
return SalesforceStandardObjectName.solution;
case 'TASK':
return SalesforceStandardObjectName.task;
case 'USER':
return SalesforceStandardObjectName.user;
}
throw Exception('$this is not known in enum SalesforceStandardObjectName');
}