CheckSet.fromJson constructor

CheckSet.fromJson(
  1. Map json_
)

Implementation

CheckSet.fromJson(core.Map json_)
    : this(
        checks: json_.containsKey('checks')
            ? (json_['checks'] as core.List)
                .map((value) => Check.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        imageAllowlist: json_.containsKey('imageAllowlist')
            ? ImageAllowlist.fromJson(json_['imageAllowlist']
                as core.Map<core.String, core.dynamic>)
            : null,
        scope: json_.containsKey('scope')
            ? Scope.fromJson(
                json_['scope'] as core.Map<core.String, core.dynamic>)
            : null,
      );