GoogleCloudContentwarehouseV1RuleSet.fromJson constructor

GoogleCloudContentwarehouseV1RuleSet.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1RuleSet.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => GoogleCloudContentwarehouseV1Rule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
      );