StoryData.fromMap constructor
Implementation
factory StoryData.fromMap(Map<String, dynamic> map) {
return StoryData(
id: map['id'] as String? ?? '',
ownerId: map['ownerId'] as String? ?? '',
ownerName: map['ownerName'] as String? ?? '',
ownerAvatarUrl: map['ownerAvatarUrl'] as String? ?? '',
viewerIds: List<String>.from(map['viewerIds'] as List? ?? []),
);
}