Volume.fromJson constructor

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

Implementation

factory Volume.fromJson(Map<String, dynamic> json) {
  return Volume(
    dockerVolumeConfiguration: json['dockerVolumeConfiguration'] != null
        ? DockerVolumeConfiguration.fromJson(
            json['dockerVolumeConfiguration'] as Map<String, dynamic>)
        : null,
    efsVolumeConfiguration: json['efsVolumeConfiguration'] != null
        ? EFSVolumeConfiguration.fromJson(
            json['efsVolumeConfiguration'] as Map<String, dynamic>)
        : null,
    fsxWindowsFileServerVolumeConfiguration:
        json['fsxWindowsFileServerVolumeConfiguration'] != null
            ? FSxWindowsFileServerVolumeConfiguration.fromJson(
                json['fsxWindowsFileServerVolumeConfiguration']
                    as Map<String, dynamic>)
            : null,
    host: json['host'] != null
        ? HostVolumeProperties.fromJson(json['host'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
  );
}