convert method

  1. @override
BuiltList<T>? convert(
  1. Object? value
)
override

Implementation

@override
BuiltList<T>? convert(Object? value) {
  if (convertor == null) {
    throw Exception("Cannot call QueryOptions.convert when convertor is absent");
  }

  if (value == null) return null;

  return BuiltList.from((value as Iterable<Map<String, dynamic>>).map((e) => convertor!(e)));
}