AccessApprovalSettings.fromJson constructor

AccessApprovalSettings.fromJson(
  1. Map json_
)

Implementation

AccessApprovalSettings.fromJson(core.Map json_)
    : this(
        activeKeyVersion: json_.containsKey('activeKeyVersion')
            ? json_['activeKeyVersion'] as core.String
            : null,
        ancestorHasActiveKeyVersion:
            json_.containsKey('ancestorHasActiveKeyVersion')
                ? json_['ancestorHasActiveKeyVersion'] as core.bool
                : null,
        enrolledAncestor: json_.containsKey('enrolledAncestor')
            ? json_['enrolledAncestor'] as core.bool
            : null,
        enrolledServices: json_.containsKey('enrolledServices')
            ? (json_['enrolledServices'] as core.List)
                .map((value) => EnrolledService.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        invalidKeyVersion: json_.containsKey('invalidKeyVersion')
            ? json_['invalidKeyVersion'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notificationEmails: json_.containsKey('notificationEmails')
            ? (json_['notificationEmails'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        notificationPubsubTopic: json_.containsKey('notificationPubsubTopic')
            ? json_['notificationPubsubTopic'] as core.String
            : null,
        preferNoBroadApprovalRequests:
            json_.containsKey('preferNoBroadApprovalRequests')
                ? json_['preferNoBroadApprovalRequests'] as core.bool
                : null,
        preferredRequestExpirationDays:
            json_.containsKey('preferredRequestExpirationDays')
                ? json_['preferredRequestExpirationDays'] as core.int
                : null,
        requestScopeMaxWidthPreference:
            json_.containsKey('requestScopeMaxWidthPreference')
                ? json_['requestScopeMaxWidthPreference'] as core.String
                : null,
        requireCustomerVisibleJustification:
            json_.containsKey('requireCustomerVisibleJustification')
                ? json_['requireCustomerVisibleJustification'] as core.bool
                : null,
      );