ControllerRevision.fromJson constructor
Creates a ControllerRevision from JSON data.
Implementation
factory ControllerRevision.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempDataJson = json['data'];
final tempKindJson = json['kind'];
final tempMetadataJson = json['metadata'];
final tempRevisionJson = json['revision'];
final String? tempApiVersion = tempApiVersionJson;
final RawExtension? tempData =
tempDataJson != null ? RawExtension.fromJson(tempDataJson) : null;
final String? tempKind = tempKindJson;
final ObjectMeta? tempMetadata =
tempMetadataJson != null ? ObjectMeta.fromJson(tempMetadataJson) : null;
final int tempRevision = tempRevisionJson;
return ControllerRevision(
apiVersion: tempApiVersion,
data: tempData,
kind: tempKind,
metadata: tempMetadata,
revision: tempRevision,
);
}