toModel method

Map<String, Object?> toModel(
  1. Map<String, Object?> document, {
  2. List<String>? selectedFields,
})

Implementation

Map<String, Object?> toModel(
  Map<String, Object?> document, {
  List<String>? selectedFields,
}) {
  FormResultFree formResult = validate(document);
  var res = formResult.formValues(selectedFields: selectedFields);
  return res;
}