fromString static method
Implementation
static VideoDefinition? fromString(String string) => switch (string) {
"hd" => high,
"sd" => standard,
_ => null,
};
static VideoDefinition? fromString(String string) => switch (string) {
"hd" => high,
"sd" => standard,
_ => null,
};