toJson method

Map<String, Object?> toJson()

lang-core's JSON of this element, as JSON.stringify writes it.

Implementation

Map<String, Object?> toJson() =>
    jsonDecode(Js.stringify(this)) as Map<String, Object?>;