previewCreate static method

CreateOutcome previewCreate(
  1. Map<String, dynamic> link
)

Dry-run: build the would-create result (incl. the real SDK payload) offline.

Implementation

static CreateOutcome previewCreate(Map<String, dynamic> link) {
  return CreateOutcome(
    status: 'preview',
    shortLink: _shortUrlFor(link),
    payload: toSdkPayload(link),
    link: link,
  );
}