RegexRewrite.fromJson constructor

RegexRewrite.fromJson(
  1. Object? j
)

Implementation

factory RegexRewrite.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RegexRewrite(
    pathPattern: switch (json['pathPattern']) {
      null => null,
      Object $1 => decodeString($1),
    },
    pathSubstitution: switch (json['pathSubstitution']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}