toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"campaign": campaign!.toJson(),
"socketToken": socketToken,
"page": page,
"title": title,
"logo": logo!.toJson(),
"button": button!.toJson(),
"branding": branding!.toJson(),
"bot": bot!.toJson(),
"body": body!.toJson(),
"multipleInteractions": multipleInteractions,
"showAgentNames": showAgentNames,
"queue": queue,
"welcomeButtons": welcomeButtons == null
? []
: List<dynamic>.from(welcomeButtons!.map((x) => x)),
"website": website,
"active": active,
"template": template,
"socialMedia": socialMedia,
"socialChannels": socialChannels == null
? []
: List<dynamic>.from(socialChannels!.map((x) => x)),
"chatBotHeader": chatBotHeader,
"chatBotHeaderDescription": chatBotHeaderDescription,
"chatBotName": chatBotName,
"fileStore": fileStore,
"iat": iat,
"exp": exp,
};