asInstanceList<R extends Object<R>> method

List<R> asInstanceList<R extends Object<R>>([
  1. String? id
])

Implementation

List<R> asInstanceList<R extends object.Object<R>>([String? id]) {
  try {
    final data = this as dynamic;
    if (data == null) return [];
    return ObjectManager().listObjectFromComplexType<R>(
      data ?? [],
      id ?? '',
    );
  } catch (e) {
    printDebug('Error on getListOfInstances $runtimeType');
    printDebug(e);
    return [];
  }
}