toJson method
Implementation
Map<String, dynamic> toJson() {
final maxAttempts = this.maxAttempts;
final messages = this.messages;
final responseCard = this.responseCard;
return {
'maxAttempts': maxAttempts,
'messages': messages,
if (responseCard != null) 'responseCard': responseCard,
};
}