serialize

open override fun serialize(src: Profile, typeOfSrc: Type, context: JsonSerializationContext): JsonElement

Serializes Profile to JsonElement

Since

0.2.0

Return

The serialized Profile

Parameters

src

The Profile to serialize to a JsonElement

typeOfSrc

The type of src (Profile)

context

The json serialization context

Throws

JsonSyntaxException

If the profile isn't resolved