StorageVersionCondition.fromJson constructor
Creates a StorageVersionCondition from JSON data.
Implementation
factory StorageVersionCondition.fromJson(Map<String, dynamic> json) {
final tempLastTransitionTimeJson = json['lastTransitionTime'];
final tempMessageJson = json['message'];
final tempObservedGenerationJson = json['observedGeneration'];
final tempReasonJson = json['reason'];
final tempStatusJson = json['status'];
final tempTypeJson = json['type'];
final DateTime? tempLastTransitionTime = tempLastTransitionTimeJson != null
? DateTime.tryParse(tempLastTransitionTimeJson)
: null;
final String? tempMessage = tempMessageJson;
final int? tempObservedGeneration = tempObservedGenerationJson;
final String tempReason = tempReasonJson;
final String tempStatus = tempStatusJson;
final String tempType = tempTypeJson;
return StorageVersionCondition(
lastTransitionTime: tempLastTransitionTime,
message: tempMessage,
observedGeneration: tempObservedGeneration,
reason: tempReason,
status: tempStatus,
type: tempType,
);
}