ConfigManagementConfigSyncState.fromJson constructor

ConfigManagementConfigSyncState.fromJson(
  1. Map json_
)

Implementation

ConfigManagementConfigSyncState.fromJson(core.Map json_)
    : this(
        deploymentState: json_.containsKey('deploymentState')
            ? ConfigManagementConfigSyncDeploymentState.fromJson(
                json_['deploymentState']
                    as core.Map<core.String, core.dynamic>)
            : null,
        errors: json_.containsKey('errors')
            ? (json_['errors'] as core.List)
                .map((value) => ConfigManagementConfigSyncError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reposyncCrd: json_.containsKey('reposyncCrd')
            ? json_['reposyncCrd'] as core.String
            : null,
        rootsyncCrd: json_.containsKey('rootsyncCrd')
            ? json_['rootsyncCrd'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        syncState: json_.containsKey('syncState')
            ? ConfigManagementSyncState.fromJson(
                json_['syncState'] as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? ConfigManagementConfigSyncVersion.fromJson(
                json_['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );