toSequenceList method

List<SqfEntitySequenceBase>? toSequenceList(
  1. List<DartObject>? objSequences
)

convert List

Implementation

List<SqfEntitySequenceBase>? toSequenceList(List<DartObject>? objSequences) {
  if (objSequences == null) {
    //  print('SQFENTITY_GEN.DART: toSequenceList() returned null');
    return null;
  }
  print('SQFENTITY_GEN.DART: recognizing Sequences ($modelName)');
  final sqfEntitySQEList = <SqfEntitySequenceBase>[];
  for (var obj in objSequences) {
    try {
      sqfEntitySQEList.add(toSequence(obj));
    } catch (e) {
      print(
          'SQFENTITY_GEN.DART: recognizing Sequences ERROR. ($modelName) tried obj=>${obj.toString()}\nError Message:${e.toString()}');
    }
  }
  return sqfEntitySQEList;
}