AttachmentArchiveMetadataReadable.fromJson constructor
Implementation
factory AttachmentArchiveMetadataReadable.fromJson(
Map<String, Object?> json) {
return AttachmentArchiveMetadataReadable(
entries: (json[r'entries'] as List<Object?>?)
?.map((i) => AttachmentArchiveItemReadable.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
id: (json[r'id'] as num?)?.toInt(),
mediaType: json[r'mediaType'] as String?,
name: json[r'name'] as String?,
totalEntryCount: (json[r'totalEntryCount'] as num?)?.toInt(),
);
}