HttpQueryParameterMatch.fromJson constructor

HttpQueryParameterMatch.fromJson(
  1. Object? j
)

Implementation

factory HttpQueryParameterMatch.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return HttpQueryParameterMatch(
    exactMatch: switch (json['exactMatch']) {
      null => null,
      Object $1 => decodeString($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    presentMatch: switch (json['presentMatch']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    regexMatch: switch (json['regexMatch']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}