FolderMetadata.fromJson constructor
FolderMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FolderMetadata.fromJson(Map<String, dynamic> json) {
return FolderMetadata(
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
creatorId: json['CreatorId'] as String?,
id: json['Id'] as String?,
labels: (json['Labels'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
latestVersionSize: json['LatestVersionSize'] as int?,
modifiedTimestamp: timeStampFromJson(json['ModifiedTimestamp']),
name: json['Name'] as String?,
parentFolderId: json['ParentFolderId'] as String?,
resourceState: (json['ResourceState'] as String?)?.toResourceStateType(),
signature: json['Signature'] as String?,
size: json['Size'] as int?,
);
}