DaemonSetStatus.fromJson constructor
Creates a DaemonSetStatus from JSON data.
Implementation
factory DaemonSetStatus.fromJson(Map<String, dynamic> json) {
final tempCollisionCountJson = json['collisionCount'];
final tempConditionsJson = json['conditions'];
final tempCurrentNumberScheduledJson = json['currentNumberScheduled'];
final tempDesiredNumberScheduledJson = json['desiredNumberScheduled'];
final tempNumberAvailableJson = json['numberAvailable'];
final tempNumberMisscheduledJson = json['numberMisscheduled'];
final tempNumberReadyJson = json['numberReady'];
final tempNumberUnavailableJson = json['numberUnavailable'];
final tempObservedGenerationJson = json['observedGeneration'];
final tempUpdatedNumberScheduledJson = json['updatedNumberScheduled'];
final int? tempCollisionCount = tempCollisionCountJson;
final List<DaemonSetCondition>? tempConditions = tempConditionsJson != null
? List<dynamic>.from(tempConditionsJson)
.map(
(e) => DaemonSetCondition.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
final int tempCurrentNumberScheduled = tempCurrentNumberScheduledJson;
final int tempDesiredNumberScheduled = tempDesiredNumberScheduledJson;
final int? tempNumberAvailable = tempNumberAvailableJson;
final int tempNumberMisscheduled = tempNumberMisscheduledJson;
final int tempNumberReady = tempNumberReadyJson;
final int? tempNumberUnavailable = tempNumberUnavailableJson;
final int? tempObservedGeneration = tempObservedGenerationJson;
final int? tempUpdatedNumberScheduled = tempUpdatedNumberScheduledJson;
return DaemonSetStatus(
collisionCount: tempCollisionCount,
conditions: tempConditions,
currentNumberScheduled: tempCurrentNumberScheduled,
desiredNumberScheduled: tempDesiredNumberScheduled,
numberAvailable: tempNumberAvailable,
numberMisscheduled: tempNumberMisscheduled,
numberReady: tempNumberReady,
numberUnavailable: tempNumberUnavailable,
observedGeneration: tempObservedGeneration,
updatedNumberScheduled: tempUpdatedNumberScheduled,
);
}