doYourJsonMap method

  1. @override
void doYourJsonMap(
  1. Mapper map,
  2. List<DfWebField> fields
)
override

Implementation

@override
void doYourJsonMap(Mapper map, List<DfWebField> fields) {
  //print("call db doYourJsonMap");
  List<DfWebField> customFields = [];
  for (int i = 0; i < fields.length; i++) {
    if (fields[i].fieldType.type != FieldType.custom && fields[i].getObjectValue != null && fields[i].setObjectValue != null) {
      map(fields[i].name, fields[i].getObjectValue(), (v) => fields[i].setObjectValue(v), fields[i].getTransform());
    }
    else if (fields[i].getObjectValue != null && fields[i].setObjectValue != null) {
      customFields.add(fields[i]);
    }
  }
  customFieldJsonMap(map, customFields);
}