parse static method
Implementation
static LinkedInCompanyUrl? parse(String url) {
var matches = RegExp(
r'^(?:https?:)?\/\/(?:[\w]+\.)?linkedin\.com\/(?<company_type>(company)|(school))\/(?<company_permalink>[A-z0-9-À-ÿ\.]+)\/?$')
.allMatches(url);
var type = matches.getValue("company_type");
var permalink = matches.getValue("company_permalink");
if (type == null || permalink == null) return null;
return LinkedInCompanyUrl._(type, permalink);
}