GlusterfsPersistentVolumeSource.fromJson constructor
Creates a GlusterfsPersistentVolumeSource from JSON data.
Implementation
factory GlusterfsPersistentVolumeSource.fromJson(Map<String, dynamic> json) {
final tempEndpointsJson = json['endpoints'];
final tempEndpointsNamespaceJson = json['endpointsNamespace'];
final tempPathJson = json['path'];
final tempReadOnlyJson = json['readOnly'];
final String tempEndpoints = tempEndpointsJson;
final String? tempEndpointsNamespace = tempEndpointsNamespaceJson;
final String tempPath = tempPathJson;
final bool? tempReadOnly = tempReadOnlyJson;
return GlusterfsPersistentVolumeSource(
endpoints: tempEndpoints,
endpointsNamespace: tempEndpointsNamespace,
path: tempPath,
readOnly: tempReadOnly,
);
}