toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (backgroundHexColor != null)
        'backgroundHexColor': backgroundHexColor!,
      if (body != null) 'body': body!,
      if (landscapeImageUrl != null) 'landscapeImageUrl': landscapeImageUrl!,
      if (portraitImageUrl != null) 'portraitImageUrl': portraitImageUrl!,
      if (primaryAction != null) 'primaryAction': primaryAction!,
      if (primaryActionButton != null)
        'primaryActionButton': primaryActionButton!,
      if (secondaryAction != null) 'secondaryAction': secondaryAction!,
      if (secondaryActionButton != null)
        'secondaryActionButton': secondaryActionButton!,
      if (title != null) 'title': title!,
    };