addField method

dynamic addField(
  1. String name,
  2. TypeDefinition typeDef
)

Implementation

addField(String name, TypeDefinition typeDef) {
  fields[name] = typeDef;
}