GlusterfsVolumeSource.fromJson constructor

GlusterfsVolumeSource.fromJson(
  1. Map<String, dynamic> json
)

Creates a GlusterfsVolumeSource from JSON data.

Implementation

factory GlusterfsVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempEndpointsJson = json['endpoints'];
  final tempPathJson = json['path'];
  final tempReadOnlyJson = json['readOnly'];

  final String tempEndpoints = tempEndpointsJson;
  final String tempPath = tempPathJson;
  final bool? tempReadOnly = tempReadOnlyJson;

  return GlusterfsVolumeSource(
    endpoints: tempEndpoints,
    path: tempPath,
    readOnly: tempReadOnly,
  );
}