Serialise to the wire format.
Map<String, Object?> toJson() => <String, Object?>{ 'id': id, 'type': type, 'props': props, 'label': label, 'absorbed': absorbed, };