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