UFileManagerListResponse.fromMap constructor
UFileManagerListResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UFileManagerListResponse.fromMap(Map<String, dynamic> json) => UFileManagerListResponse(
path: json["path"] ?? "",
directories: List<UFileManagerEntryResponse>.from((json["directories"] as List<dynamic>? ?? <dynamic>[]).map((dynamic x) => UFileManagerEntryResponse.fromMap(x))),
files: List<UFileManagerEntryResponse>.from((json["files"] as List<dynamic>? ?? <dynamic>[]).map((dynamic x) => UFileManagerEntryResponse.fromMap(x))),
totalSize: json["totalSize"] ?? 0,
);