HostPathVolumeSource.fromJson constructor

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

Creates a HostPathVolumeSource from JSON data.

Implementation

factory HostPathVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempPathJson = json['path'];
  final tempTypeJson = json['type'];

  final String tempPath = tempPathJson;
  final String? tempType = tempTypeJson;

  return HostPathVolumeSource(
    path: tempPath,
    type: tempType,
  );
}