AdministratorWebTokenSpec.fromJson constructor

AdministratorWebTokenSpec.fromJson(
  1. Map json_
)

Implementation

AdministratorWebTokenSpec.fromJson(core.Map json_)
    : this(
        managedConfigurations: json_.containsKey('managedConfigurations')
            ? AdministratorWebTokenSpecManagedConfigurations.fromJson(
                json_['managedConfigurations']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        permission: json_.containsKey('permission')
            ? (json_['permission'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        playSearch: json_.containsKey('playSearch')
            ? AdministratorWebTokenSpecPlaySearch.fromJson(
                json_['playSearch'] as core.Map<core.String, core.dynamic>)
            : null,
        privateApps: json_.containsKey('privateApps')
            ? AdministratorWebTokenSpecPrivateApps.fromJson(
                json_['privateApps'] as core.Map<core.String, core.dynamic>)
            : null,
        storeBuilder: json_.containsKey('storeBuilder')
            ? AdministratorWebTokenSpecStoreBuilder.fromJson(
                json_['storeBuilder'] as core.Map<core.String, core.dynamic>)
            : null,
        webApps: json_.containsKey('webApps')
            ? AdministratorWebTokenSpecWebApps.fromJson(
                json_['webApps'] as core.Map<core.String, core.dynamic>)
            : null,
        zeroTouch: json_.containsKey('zeroTouch')
            ? AdministratorWebTokenSpecZeroTouch.fromJson(
                json_['zeroTouch'] as core.Map<core.String, core.dynamic>)
            : null,
      );