MigrationJob.fromJson constructor

MigrationJob.fromJson(
  1. Map json_
)

Implementation

MigrationJob.fromJson(core.Map json_)
    : this(
        cmekKeyName: json_.containsKey('cmekKeyName')
            ? json_['cmekKeyName'] as core.String
            : null,
        conversionWorkspace: json_.containsKey('conversionWorkspace')
            ? ConversionWorkspaceInfo.fromJson(json_['conversionWorkspace']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        destination: json_.containsKey('destination')
            ? json_['destination'] as core.String
            : null,
        destinationDatabase: json_.containsKey('destinationDatabase')
            ? DatabaseType.fromJson(json_['destinationDatabase']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        dumpFlags: json_.containsKey('dumpFlags')
            ? DumpFlags.fromJson(
                json_['dumpFlags'] as core.Map<core.String, core.dynamic>)
            : null,
        dumpPath: json_.containsKey('dumpPath')
            ? json_['dumpPath'] as core.String
            : null,
        dumpType: json_.containsKey('dumpType')
            ? json_['dumpType'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        performanceConfig: json_.containsKey('performanceConfig')
            ? PerformanceConfig.fromJson(json_['performanceConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        phase:
            json_.containsKey('phase') ? json_['phase'] as core.String : null,
        reverseSshConnectivity: json_.containsKey('reverseSshConnectivity')
            ? ReverseSshConnectivity.fromJson(json_['reverseSshConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        sourceDatabase: json_.containsKey('sourceDatabase')
            ? DatabaseType.fromJson(json_['sourceDatabase']
                as core.Map<core.String, core.dynamic>)
            : null,
        sqlserverHomogeneousMigrationJobConfig:
            json_.containsKey('sqlserverHomogeneousMigrationJobConfig')
                ? SqlServerHomogeneousMigrationJobConfig.fromJson(
                    json_['sqlserverHomogeneousMigrationJobConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        staticIpConnectivity: json_.containsKey('staticIpConnectivity')
            ? StaticIpConnectivity.fromJson(json_['staticIpConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vpcPeeringConnectivity: json_.containsKey('vpcPeeringConnectivity')
            ? VpcPeeringConnectivity.fromJson(json_['vpcPeeringConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
      );