toJson method

Map<String, dynamic> toJson()

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!,
    };