fromJson static method
Implementation
static ChatFolderInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatFolderInfo(
id: (json['id'] as int?) ?? 0,
name: ChatFolderName.fromJson(json['name'] as Map<String, dynamic>?)!,
icon: ChatFolderIcon.fromJson(json['icon'] as Map<String, dynamic>?)!,
colorId: (json['color_id'] as int?) ?? 0,
isShareable: (json['is_shareable'] as bool?) ?? false,
hasMyInviteLinks: (json['has_my_invite_links'] as bool?) ?? false,
);
}