toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (semanticLabel != null) 'semanticLabel': semanticLabel,
      if (gradient != null) 'gradient': gradient!.toJson(),
      if (backgroundImage != null) 'backgroundImage': backgroundImage,
    };