CheckSet.fromJson constructor

CheckSet.fromJson(
  1. Map json_
)

Implementation

CheckSet.fromJson(core.Map json_)
    : this(
        checks: (json_['checks'] as core.List?)
            ?.map((value) =>
                Check.fromJson(value as core.Map<core.String, core.dynamic>))
            .toList(),
        displayName: json_['displayName'] as core.String?,
        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,
      );