Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

Rule.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        ins: json_.containsKey('ins')
            ? (json_['ins'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        logConfigs: json_.containsKey('logConfigs')
            ? (json_['logConfigs'] as core.List)
                .map((value) => LogConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        notIns: json_.containsKey('notIns')
            ? (json_['notIns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        permissions: json_.containsKey('permissions')
            ? (json_['permissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );