ConfigMapKeySelector.fromJson constructor
Creates a ConfigMapKeySelector from JSON data.
Implementation
factory ConfigMapKeySelector.fromJson(Map<String, dynamic> json) {
final tempKeyJson = json['key'];
final tempNameJson = json['name'];
final tempOptionalJson = json['optional'];
final String tempKey = tempKeyJson;
final String? tempName = tempNameJson;
final bool? tempOptional = tempOptionalJson;
return ConfigMapKeySelector(
key: tempKey,
name: tempName,
optional: tempOptional,
);
}