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