encodeJsonTree method
Converts instance
to a JSON tree.
Before calling this method, you should call isInstance to check whether
instance
is an instance of T
.
Implementation
@override
Object? encodeJsonTree((T0, T1) instance) {
final (value0, value1) = instance;
return <Object?>[
kind0.encodeJsonTree(value0),
kind1.encodeJsonTree(value1),
];
}