ByteMatchStatement.fromJson constructor

ByteMatchStatement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ByteMatchStatement.fromJson(Map<String, dynamic> json) {
  return ByteMatchStatement(
    fieldToMatch:
        FieldToMatch.fromJson(json['FieldToMatch'] as Map<String, dynamic>),
    positionalConstraint:
        (json['PositionalConstraint'] as String).toPositionalConstraint(),
    searchString: _s.decodeUint8List(json['SearchString']! as String),
    textTransformations: (json['TextTransformations'] as List)
        .whereNotNull()
        .map((e) => TextTransformation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}