fromMeta static method

ClientParam? fromMeta(
  1. MetaParam parameter
)

Implementation

static ClientParam? fromMeta(MetaParam parameter) {
  final (:acceptMultiple, :access, :position) = _getPosition(
    parameter.name,
    parameter.annotationsFor,
  );
  if (position == null) {
    return null;
  }

  return ClientParam(
    name: parameter.name,
    position: position,
    type: ClientType.fromMeta(parameter.type),
    access: access,
    acceptMultiple: acceptMultiple,
    hasDefaultValue: parameter.hasDefaultValue,
  );
}