ConversionWorkspace.fromJson constructor

ConversionWorkspace.fromJson(
  1. Map json_
)

Implementation

ConversionWorkspace.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        destination: json_.containsKey('destination')
            ? DatabaseEngineInfo.fromJson(
                json_['destination'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        globalSettings: json_.containsKey('globalSettings')
            ? (json_['globalSettings'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        hasUncommittedChanges: json_.containsKey('hasUncommittedChanges')
            ? json_['hasUncommittedChanges'] as core.bool
            : null,
        latestCommitId: json_.containsKey('latestCommitId')
            ? json_['latestCommitId'] as core.String
            : null,
        latestCommitTime: json_.containsKey('latestCommitTime')
            ? json_['latestCommitTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        source: json_.containsKey('source')
            ? DatabaseEngineInfo.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );