Skip to content

Commit

Permalink
docs: comment the new method
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian G <[email protected]>
  • Loading branch information
cristianIOHK committed Aug 7, 2024
1 parent 879553a commit 46dafbf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ import kotlin.jvm.JvmOverloads
@Serializable
sealed class AttachmentData {

/**
* This method verifies the type of [AttachmentData] and returns the data as a json string.
*/
fun getDataAsJsonString(): String? {
return when (this) {
is AttachmentHeader -> {
Expand Down

0 comments on commit 46dafbf

Please sign in to comment.