toJson method

Map<String, Object?> toJson()

Encodes the tagged union.

Implementation

Map<String, Object?> toJson() => decodeAcpObject(toAcpJson().toObject());