CrossProfilePolicies.fromJson constructor

CrossProfilePolicies.fromJson(
  1. Map json_
)

Implementation

CrossProfilePolicies.fromJson(core.Map json_)
    : this(
        crossProfileCopyPaste: json_.containsKey('crossProfileCopyPaste')
            ? json_['crossProfileCopyPaste'] as core.String
            : null,
        crossProfileDataSharing: json_.containsKey('crossProfileDataSharing')
            ? json_['crossProfileDataSharing'] as core.String
            : null,
        exemptionsToShowWorkContactsInPersonalProfile:
            json_.containsKey('exemptionsToShowWorkContactsInPersonalProfile')
                ? PackageNameList.fromJson(
                    json_['exemptionsToShowWorkContactsInPersonalProfile']
                        as core.Map<core.String, core.dynamic>)
                : null,
        showWorkContactsInPersonalProfile:
            json_.containsKey('showWorkContactsInPersonalProfile')
                ? json_['showWorkContactsInPersonalProfile'] as core.String
                : null,
        workProfileWidgetsDefault:
            json_.containsKey('workProfileWidgetsDefault')
                ? json_['workProfileWidgetsDefault'] as core.String
                : null,
      );