diff --git a/src/json3.jl b/src/json3.jl index bdf3a4f..3e03c8e 100644 --- a/src/json3.jl +++ b/src/json3.jl @@ -9,8 +9,5 @@ const StructTypes = JSON3.StructTypes StructTypes.StructType(::Type{<:PlotlyBase.Plot}) = JSON3.RawType() JSON3.rawbytes(plot::PlotlyBase.Plot) = codeunits(JSON.json(plot)) -StructTypes.StructType(::Type{<:PlotlyBase.AbstractTrace}) = JSON3.RawType() -JSON3.rawbytes(trace::PlotlyBase.AbstractTrace) = codeunits(JSON.json(trace)) - -StructTypes.StructType(::Type{<:AbstractLayout}) = JSON3.RawType() -JSON3.rawbytes(layout::AbstractLayout) = codeunits(JSON.json(layout)) +StructTypes.StructType(::Type{<:HasFields}) = JSON3.RawType() +JSON3.rawbytes(x::HasFields) = codeunits(JSON.json(x)) \ No newline at end of file