toJson method
Implementation
Map<String, dynamic> toJson() => {
'_elementId': _elementId,
'title': title,
'imageUrl': imageUrl,
'imageTint': imageTint?.toJson(),
'isPrimary': isPrimary,
'onPress': onPress != null,
};