DiskInfo.fromJson constructor

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

Implementation

factory DiskInfo.fromJson(Map<String, dynamic> json) {
  return DiskInfo(
    isSystemDisk: json['isSystemDisk'] as bool?,
    name: json['name'] as String?,
    path: json['path'] as String?,
    sizeInGb: json['sizeInGb'] as int?,
  );
}