from static method
Make license plate from string
Implementation
static from(String value) {
if (value.length <= 6) return null;
try {
return StandartLicensePlate(
series: value[0] + value[4] + value[5],
number: int.parse(value.substring(1, 4).toString()),
region: int.parse(value.substring(6)),
);
} catch (e) {
return null;
}
}