ServerIpAnnotation.fromElement constructor

ServerIpAnnotation.fromElement(
  1. DartObject object,
  2. ElementAnnotation annotation
)

Implementation

factory ServerIpAnnotation.fromElement(
  DartObject object,
  // ignore: avoid_unused_constructor_parameters
  ElementAnnotation annotation,
) {
  final pipe = object.getField('pipe')?.toTypeValue();

  return ServerIpAnnotation(pipe: ServerPipe.fromType(pipe));
}