HttpHeaderOption.fromJson constructor

HttpHeaderOption.fromJson(
  1. Object? j
)

Implementation

factory HttpHeaderOption.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return HttpHeaderOption(
    headerName: switch (json['headerName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    headerValue: switch (json['headerValue']) {
      null => null,
      Object $1 => decodeString($1),
    },
    replace: switch (json['replace']) {
      null => null,
      Object $1 => decodeBool($1),
    },
  );
}