toMap method
Implementation
@override
Map<String, dynamic> toMap() {
if (option.semantics == null) {
option.semantics = {};
}
option.semantics?.let((semantics) {
semantics.assignOptional('products', products?.toMapList());
});
return super.toMap();
}