renderRecordIDL static method

dynamic renderRecordIDL(
  1. Iterable<SerField> fields
)

Implementation

static renderRecordIDL(Iterable<SerField> fields) {
  return (LambdaContext _) => """
    static final RecordClass idl = IDL.Record(<String, dynamic>{
      ${fields.map((e) => "'${e.id}': ${e.idl},").join("\n")}
    },);
  """;
}