PersonalUsagePolicies.fromJson constructor

PersonalUsagePolicies.fromJson(
  1. Map json_
)

Implementation

PersonalUsagePolicies.fromJson(core.Map json_)
    : this(
        accountTypesWithManagementDisabled:
            json_.containsKey('accountTypesWithManagementDisabled')
                ? (json_['accountTypesWithManagementDisabled'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        cameraDisabled: json_.containsKey('cameraDisabled')
            ? json_['cameraDisabled'] as core.bool
            : null,
        maxDaysWithWorkOff: json_.containsKey('maxDaysWithWorkOff')
            ? json_['maxDaysWithWorkOff'] as core.int
            : null,
        personalApplications: json_.containsKey('personalApplications')
            ? (json_['personalApplications'] as core.List)
                .map((value) => PersonalApplicationPolicy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        personalPlayStoreMode: json_.containsKey('personalPlayStoreMode')
            ? json_['personalPlayStoreMode'] as core.String
            : null,
        screenCaptureDisabled: json_.containsKey('screenCaptureDisabled')
            ? json_['screenCaptureDisabled'] as core.bool
            : null,
      );