Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

Rule.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        condition: json_.containsKey('condition')
            ? (json_['condition'] as core.List)
                .map((value) => Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] as core.String : null,
        ruleId: json_.containsKey('ruleId')
            ? json_['ruleId'] as core.String
            : null,
      );