fromString static method

VideoCaption? fromString(
  1. String string
)

Implementation

static VideoCaption? fromString(String string) => switch (string) {
      "false" => none,
      "true" => closedCaption,
      _ => null,
    };