ConfigManagementSyncState.fromJson constructor

ConfigManagementSyncState.fromJson(
  1. Map json_
)

Implementation

ConfigManagementSyncState.fromJson(core.Map json_)
    : this(
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        errors: json_.containsKey('errors')
            ? (json_['errors'] as core.List)
                .map((value) => ConfigManagementSyncError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        importToken: json_.containsKey('importToken')
            ? json_['importToken'] as core.String
            : null,
        lastSync: json_.containsKey('lastSync')
            ? json_['lastSync'] as core.String
            : null,
        lastSyncTime: json_.containsKey('lastSyncTime')
            ? json_['lastSyncTime'] as core.String
            : null,
        sourceToken: json_.containsKey('sourceToken')
            ? json_['sourceToken'] as core.String
            : null,
        syncToken: json_.containsKey('syncToken')
            ? json_['syncToken'] as core.String
            : null,
      );