parseAs method

Object parseAs(
  1. Asset asset
)

Parses the given Asset and returns it as a generic Object.

This is useful when the parser needs to support both structured maps and more dynamic representations. By default, it delegates to parseAsset.

Example:

final asset = Asset('config.yaml');
final result = parser.parseAs(asset);
print(result); // Map<String, dynamic>

Implementation

Object parseAs(Asset asset) => parseAsset(asset);