fromString static method

SegmentReference? fromString(
  1. String segmentRef
)

Returns an instance of this struct from a string if it's well-formatted, null otherwise.

  • segmentRef The string to parse

Returns SegmentReference?. An instance of SegmentReference from a string if it's well-formatted, null otherwise.

Implementation

static SegmentReference? fromString(String segmentRef) => $prototype.fromString(segmentRef);