mapField<T> method

ModelField<ModelMap> mapField<T>(
  1. String name, {
  2. Type? type,
  3. FieldOptions options = FieldOptions.defaultOptions,
})

Implementation

ModelField<ModelMap> mapField<T>(String name, {Type? type, FieldOptions options = FieldOptions.defaultOptions}) => _add(
    name,
    ModelField<ModelMap>(
      parent: this,
      options: options,
      useModelInstanciator: (json) => ModelMap(json, type: type),
    ));