TransformationOptions class

Configuration for applying multiple transformations to extracted data.

This class provides a comprehensive set of data transformation options that can be applied to parser results. Transformations are applied in a specific order to ensure consistent results.

Available transformations include:

  • Text manipulation (replace, regex, crop, prepend, append)
  • Data structure operations (nth, splitBy, urldecode, mapToList)
  • Content validation (match)
  • Specialized transformations (HTTP requests, table processing, etc.)

Constructors

TransformationOptions({String? prepend, String? append, List<Object>? match, int? nth, String? splitBy, bool? urldecode, bool? mapToList, RegexTransformationOptions? regexMatch, RegexReplaceTransformationOptions? regexReplace, ReplaceTransformationOptions? replace, CropTransformationOptions? crop, List<TransformationType>? transformationOrder})
Creates a new TransformationOptions instance.
TransformationOptions.fromJson(String json)
Creates a TransformationOptions instance from a JSON string.
factory
TransformationOptions.fromMap(Map<String, dynamic> map)
Creates a TransformationOptions instance from a Map.
factory

Properties

append → String?
final
crop → CropTransformationOptions?
final
hashCode → int
The hash code for this object.
no setterinherited
mapToList → bool?
final
match → List<Object>?
final
nth → int?
final
prepend → String?
Common transformation fields for basic operations
final
regexMatch → RegexTransformationOptions?
Dedicated transformation objects for complex operations
final
regexReplace → RegexReplaceTransformationOptions?
final
replace → ReplaceTransformationOptions?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
splitBy → String?
final
transformationOrder → List<TransformationType>?
The order in which transformations should be applied
final
urldecode → bool?
final

Methods

applyTransformations(Object data, Map<String, Object> allData, bool debug) → Object?
Applies all configured transformations to the input data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Converts the TransformationOptions instance to JSON string.
toMap() → Map<String, dynamic>
Converts the TransformationOptions instance to a Map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited