SelfSubjectReview.fromJson constructor
Creates a SelfSubjectReview from JSON data.
Implementation
factory SelfSubjectReview.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempKindJson = json['kind'];
final tempMetadataJson = json['metadata'];
final tempStatusJson = json['status'];
final String? tempApiVersion = tempApiVersionJson;
final String? tempKind = tempKindJson;
final ObjectMeta? tempMetadata =
tempMetadataJson != null ? ObjectMeta.fromJson(tempMetadataJson) : null;
final SelfSubjectReviewStatus? tempStatus = tempStatusJson != null
? SelfSubjectReviewStatus.fromJson(tempStatusJson)
: null;
return SelfSubjectReview(
apiVersion: tempApiVersion,
kind: tempKind,
metadata: tempMetadata,
status: tempStatus,
);
}