HttpRouteHeader.fromJson constructor

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

Implementation

factory HttpRouteHeader.fromJson(Map<String, dynamic> json) {
  return HttpRouteHeader(
    name: json['name'] as String,
    invert: json['invert'] as bool?,
    match: json['match'] != null
        ? HeaderMatchMethod.fromJson(json['match'] as Map<String, dynamic>)
        : null,
  );
}