toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acceleratorConfig != null) 'acceleratorConfig': acceleratorConfig!,
      if (autoScaling != null) 'autoScaling': autoScaling!,
      if (container != null) 'container': container!,
      if (createTime != null) 'createTime': createTime!,
      if (deploymentUri != null) 'deploymentUri': deploymentUri!,
      if (description != null) 'description': description!,
      if (errorMessage != null) 'errorMessage': errorMessage!,
      if (etag != null) 'etag': etag!,
      if (explanationConfig != null) 'explanationConfig': explanationConfig!,
      if (framework != null) 'framework': framework!,
      if (isDefault != null) 'isDefault': isDefault!,
      if (labels != null) 'labels': labels!,
      if (lastMigrationModelId != null)
        'lastMigrationModelId': lastMigrationModelId!,
      if (lastMigrationTime != null) 'lastMigrationTime': lastMigrationTime!,
      if (lastUseTime != null) 'lastUseTime': lastUseTime!,
      if (machineType != null) 'machineType': machineType!,
      if (manualScaling != null) 'manualScaling': manualScaling!,
      if (name != null) 'name': name!,
      if (packageUris != null) 'packageUris': packageUris!,
      if (predictionClass != null) 'predictionClass': predictionClass!,
      if (pythonVersion != null) 'pythonVersion': pythonVersion!,
      if (requestLoggingConfig != null)
        'requestLoggingConfig': requestLoggingConfig!,
      if (routes != null) 'routes': routes!,
      if (runtimeVersion != null) 'runtimeVersion': runtimeVersion!,
      if (serviceAccount != null) 'serviceAccount': serviceAccount!,
      if (state != null) 'state': state!,
    };