renderVariantIDL static method
Implementation
static renderVariantIDL(String type, Iterable<SerField> fields) {
return (LambdaContext _) => """
static final VariantClass idl = IDL.Variant(<String, CType<dynamic>>{
${fields.map((e) => "'${e.id}': ${e.idl},").join("\n")}
},);
""";
}