DeleteOptions.fromJson constructor
Creates a DeleteOptions from JSON data.
Implementation
factory DeleteOptions.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempDryRunJson = json['dryRun'];
final tempGracePeriodSecondsJson = json['gracePeriodSeconds'];
final tempKindJson = json['kind'];
final tempOrphanDependentsJson = json['orphanDependents'];
final tempPreconditionsJson = json['preconditions'];
final tempPropagationPolicyJson = json['propagationPolicy'];
final String? tempApiVersion = tempApiVersionJson;
final List<String>? tempDryRun =
tempDryRunJson != null ? List<String>.from(tempDryRunJson) : null;
final int? tempGracePeriodSeconds = tempGracePeriodSecondsJson;
final String? tempKind = tempKindJson;
final bool? tempOrphanDependents = tempOrphanDependentsJson;
final Preconditions? tempPreconditions = tempPreconditionsJson != null
? Preconditions.fromJson(tempPreconditionsJson)
: null;
final String? tempPropagationPolicy = tempPropagationPolicyJson;
return DeleteOptions(
apiVersion: tempApiVersion,
dryRun: tempDryRun,
gracePeriodSeconds: tempGracePeriodSeconds,
kind: tempKind,
orphanDependents: tempOrphanDependents,
preconditions: tempPreconditions,
propagationPolicy: tempPropagationPolicy,
);
}