PodFailurePolicyOnExitCodesRequirement.fromJson constructor

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

Creates a PodFailurePolicyOnExitCodesRequirement from JSON data.

Implementation

factory PodFailurePolicyOnExitCodesRequirement.fromJson(
    Map<String, dynamic> json) {
  final tempContainerNameJson = json['containerName'];
  final tempOperatorJson = json['operator'];
  final tempValuesJson = json['values'];

  final String? tempContainerName = tempContainerNameJson;
  final String tempOperator = tempOperatorJson;
  final List<int> tempValues = List<int>.from(tempValuesJson);

  return PodFailurePolicyOnExitCodesRequirement(
    containerName: tempContainerName,
    operator: tempOperator,
    values: tempValues,
  );
}