Condition.fromJson constructor

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

Implementation

factory Condition.fromJson(Map<String, dynamic> json) {
  return Condition(
    targetUrl: json['targetUrl'] != null
        ? List<String>.from(json['targetUrl'] as List<dynamic>)
        : null,
    responseCode: json['responseCode'] != null
        ? List<String>.from(json['responseCode'] as List<dynamic>)
        : null,
    method: json['method'] != null
        ? List<String>.from(json['method'] as List<dynamic>)
        : null,
  );
}