convertStringToVideoType method Null safety
- String type
Converts a string video type to the corresponding VideoType enum.
Returns null
if it is does not exist, otherwise returns VideoType
Implementation
static VideoType? convertStringToVideoType(String type) => EnumToString.fromString(VideoType.values, type);