SystemDfVolume.fromJson constructor

SystemDfVolume.fromJson(
  1. Map<String, Object?> json
)

Builds SystemDfVolume from JSON.

Implementation

factory SystemDfVolume.fromJson(Map<String, Object?> json) {
  return SystemDfVolume(
    volumeName: asString(json['VolumeName']) ?? '',
    links: asInt(json['Links']) ?? 0,
    size: asInt(json['Size']) ?? 0,
    reclaimableSize: asInt(json['ReclaimableSize']) ?? 0,
    raw: json,
  );
}