GetResourcesResponse.fromJson constructor
GetResourcesResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetResourcesResponse.fromJson(Map<String, dynamic> json) {
return GetResourcesResponse(
documents: (json['Documents'] as List?)
?.whereNotNull()
.map((e) => DocumentMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
folders: (json['Folders'] as List?)
?.whereNotNull()
.map((e) => FolderMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
marker: json['Marker'] as String?,
);
}