GoogleCloudSecuritycenterV1Binding.fromJson constructor

GoogleCloudSecuritycenterV1Binding.fromJson(
  1. Map json_
)

Implementation

GoogleCloudSecuritycenterV1Binding.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ns: json_.containsKey('ns') ? json_['ns'] as core.String : null,
        role: json_.containsKey('role')
            ? Role.fromJson(
                json_['role'] as core.Map<core.String, core.dynamic>)
            : null,
        subjects: json_.containsKey('subjects')
            ? (json_['subjects'] as core.List)
                .map((value) => Subject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );