parse static method
Implementation
static LinkedInPostUrl? parse(String url) {
var matches = RegExp(
r'^(?:https?:)?\/\/(?:[\w]+\.)?linkedin\.com\/feed\/update\/urn:li:activity:(?<activity_id>[0-9]+)\/?$')
.allMatches(url);
var id = matches.getValue("activity_id");
if (id == null) return null;
return LinkedInPostUrl._(id);
}