toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (action != null) 'action': action!,
      if (backgroundHexColor != null)
        'backgroundHexColor': backgroundHexColor!,
      if (body != null) 'body': body!,
      if (imageUrl != null) 'imageUrl': imageUrl!,
      if (title != null) 'title': title!,
    };