NFSVolumeSource.fromJson constructor

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

Creates a NFSVolumeSource from JSON data.

Implementation

factory NFSVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempPathJson = json['path'];
  final tempReadOnlyJson = json['readOnly'];
  final tempServerJson = json['server'];

  final String tempPath = tempPathJson;
  final bool? tempReadOnly = tempReadOnlyJson;
  final String tempServer = tempServerJson;

  return NFSVolumeSource(
    path: tempPath,
    readOnly: tempReadOnly,
    server: tempServer,
  );
}