DownwardAPIVolumeFile.fromJson constructor
Creates a DownwardAPIVolumeFile from JSON data.
Implementation
factory DownwardAPIVolumeFile.fromJson(Map<String, dynamic> json) {
final tempFieldRefJson = json['fieldRef'];
final tempModeJson = json['mode'];
final tempPathJson = json['path'];
final tempResourceFieldRefJson = json['resourceFieldRef'];
final ObjectFieldSelector? tempFieldRef = tempFieldRefJson != null
? ObjectFieldSelector.fromJson(tempFieldRefJson)
: null;
final int? tempMode = tempModeJson;
final String tempPath = tempPathJson;
final ResourceFieldSelector? tempResourceFieldRef =
tempResourceFieldRefJson != null
? ResourceFieldSelector.fromJson(tempResourceFieldRefJson)
: null;
return DownwardAPIVolumeFile(
fieldRef: tempFieldRef,
mode: tempMode,
path: tempPath,
resourceFieldRef: tempResourceFieldRef,
);
}