toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (banner != null) 'banner': banner!,
if (card != null) 'card': card!,
if (imageOnly != null) 'imageOnly': imageOnly!,
if (modal != null) 'modal': modal!,
};