encode static method

String encode(
  1. DocumentStatus value
)

Implementation

static String encode(DocumentStatus value) {
	switch (value) {
		case DocumentStatus.draft:
			return 'draft';
		case DocumentStatus.finalized:
			return 'finalized';
		case DocumentStatus.pendingReview:
			return 'pending_review';
		case DocumentStatus.reviewed:
			return 'reviewed';
		case DocumentStatus.pendingSignature:
			return 'pending_signature';
		case DocumentStatus.signed:
			return 'signed';
		case DocumentStatus.canceled:
			return 'canceled';
		case DocumentStatus.sent:
			return 'sent';
		case DocumentStatus.delivered:
			return 'delivered';
		}
}