MountInfo.fromJson constructor

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

Deserializes a JSON-compatible map to create an instance.

Used internally, not intended for direct use by consumers. The expected map structure may change without notice.

Implementation

factory MountInfo.fromJson(Map<String, dynamic> json) {
  return MountInfo(
    path: json['path'],
    freeSpace: json['freeSpace'],
    totalSpace: json['totalSpace'],
    internalPath: json['internalPath'],
    onlineCachePath: json['onlineCachePath'],
  );
}