FieldToMatch.fromJson constructor

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

Implementation

factory FieldToMatch.fromJson(Map<String, dynamic> json) {
  return FieldToMatch(
    allQueryArguments: json['AllQueryArguments'] != null
        ? AllQueryArguments.fromJson(
            json['AllQueryArguments'] as Map<String, dynamic>)
        : null,
    body: json['Body'] != null
        ? Body.fromJson(json['Body'] as Map<String, dynamic>)
        : null,
    method: json['Method'] != null
        ? Method.fromJson(json['Method'] as Map<String, dynamic>)
        : null,
    queryString: json['QueryString'] != null
        ? QueryString.fromJson(json['QueryString'] as Map<String, dynamic>)
        : null,
    singleHeader: json['SingleHeader'] != null
        ? SingleHeader.fromJson(json['SingleHeader'] as Map<String, dynamic>)
        : null,
    singleQueryArgument: json['SingleQueryArgument'] != null
        ? SingleQueryArgument.fromJson(
            json['SingleQueryArgument'] as Map<String, dynamic>)
        : null,
    uriPath: json['UriPath'] != null
        ? UriPath.fromJson(json['UriPath'] as Map<String, dynamic>)
        : null,
  );
}