getModelData method

Map<String, dynamic> getModelData({
  1. bool applyHiddenFields = false,
})

Returns Model Data With Options

Implementation

Map<String, dynamic> getModelData({bool applyHiddenFields = false}) {
  if (applyHiddenFields) {
    Map<String, dynamic> tmp = getData();
    for (String key in hiddenFields) {
      tmp.remove(key);
    }
    return tmp;
  }
  return getData();
}