HTTPFaultInjection.fromJson constructor

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

Creates a HTTPFaultInjection from JSON data.

Implementation

HTTPFaultInjection.fromJson(Map<String, dynamic> json)
    : this(
          delay: json['delay'] != null ? Delay.fromJson(json['delay']) : null,
          abort:
              json['abort'] != null ? Abort.fromJson(json['abort']) : null);