AttachmentArchiveImpl.fromJson constructor

AttachmentArchiveImpl.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AttachmentArchiveImpl.fromJson(Map<String, Object?> json) {
  return AttachmentArchiveImpl(
    entries: (json[r'entries'] as List<Object?>?)
            ?.map((i) => AttachmentArchiveEntry.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    totalEntryCount: (json[r'totalEntryCount'] as num?)?.toInt(),
  );
}