toDBMapQuery method

Map<String, dynamic> toDBMapQuery()

Implementation

Map<String, dynamic> toDBMapQuery(){
  return toMapQuery(customMapper: {
    NUIEntType.BOOLEAN: (value){
      if(value is String) {
        return match(value, "true") ? 1 : 0;
      }
      if(value is bool){
        return value ? 1 : 0;
      }
      return value;
    }
  });
}