toJson method
Implementation
Map<String, Object?> toJson() => {
if (projectId != null) 'projectId': projectId,
'routePath': routePath,
if (routeParameters != null) 'routeParameters': routeParameters,
if (socialTitle != null) 'socialTitle': socialTitle,
if (socialDescription != null) 'socialDescription': socialDescription,
if (socialImageUrl != null) 'socialImageUrl': socialImageUrl,
if (isShortLink != null) 'isShortLink': isShortLink,
if (forceRedirect != null) 'forceRedirect': forceRedirect,
if (name != null) 'name': name,
if (campaign != null) 'campaign': campaign?.toJson(),
};