compile method

  1. @override
VideoInfo compile()
override

Apply all defined properties in ImmutableBuffer into Immutable object T.

All primitive data type should be parsed to T's constructor directly and Iterable related field must be assigned with deep copied value (e.g. List.of).

Implementation

@override
VideoInfo compile() {
  return VideoInfo(
      height: height,
      secureUrl: secureUrl,
      type: type,
      url: url,
      width: width);
}