toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'label': label,
'blocks': blocks.map((item) => item.toJson()).toList(),
'has_checkbox': hasCheckbox,
'is_checked': isChecked,
'value': value,
'type': type,
'@type': constructor,
};