WafExpressionSet.fromJson constructor

WafExpressionSet.fromJson(
  1. Map json_
)

Implementation

WafExpressionSet.fromJson(core.Map json_)
    : this(
        aliases: json_.containsKey('aliases')
            ? (json_['aliases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        expressions: json_.containsKey('expressions')
            ? (json_['expressions'] as core.List)
                .map((value) => WafExpressionSetExpression.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
      );