toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['hideCardIcons'] = hideCardIcons;
data['direction'] = direction;
data['cardHeight'] = cardHeight;
data['backgroundColor'] = backgroundColor;
if (input != null) {
data['input'] = input!.toJson();
}
if (label != null) {
data['label'] = label!.toJson();
}
if (error != null) {
data['error'] = error!.toJson();
}
if (savedCardText != null) {
data['savedCardText'] = savedCardText!.toJson();
}
return data;
}