v1CreateTvcDeploymentIntent.fromJson constructor

v1CreateTvcDeploymentIntent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory v1CreateTvcDeploymentIntent.fromJson(Map<String, dynamic> json) {
  final _appId = json['appId'] as String;
  final _qosVersion = json['qosVersion'] as String;
  final _pivotContainerImageUrl = json['pivotContainerImageUrl'] as String;
  final _pivotPath = json['pivotPath'] as String;
  final _pivotArgs =
      (json['pivotArgs'] as List).map((e) => e as String).toList();
  final _expectedPivotDigest = json['expectedPivotDigest'] as String;
  final _nonce = json['nonce'] as num?;
  final _pivotContainerEncryptedPullSecret =
      json['pivotContainerEncryptedPullSecret'] as String?;
  final _debugMode = json['debugMode'] as bool?;
  final _healthCheckType =
      v1TvcHealthCheckTypeFromJson(json['healthCheckType']);
  final _healthCheckPort = json['healthCheckPort'] as num;
  final _publicIngressPort = json['publicIngressPort'] as num;
  return v1CreateTvcDeploymentIntent(
    appId: _appId,
    qosVersion: _qosVersion,
    pivotContainerImageUrl: _pivotContainerImageUrl,
    pivotPath: _pivotPath,
    pivotArgs: _pivotArgs,
    expectedPivotDigest: _expectedPivotDigest,
    nonce: _nonce,
    pivotContainerEncryptedPullSecret: _pivotContainerEncryptedPullSecret,
    debugMode: _debugMode,
    healthCheckType: _healthCheckType,
    healthCheckPort: _healthCheckPort,
    publicIngressPort: _publicIngressPort,
  );
}