findFirst method

Future<T?> findFirst({
  1. List<String>? relations,
  2. int? relationsDepth,
})
override

Implementation

Future<T?> findFirst({List<String>? relations, int? relationsDepth}) async {
  checkArguments({"relations": relations}, {"relationsDepth": relationsDepth},
      isRequired: false);
  Map mapObject = await _channel
      .invokeMethod("Backendless.Data.of.findFirst", <String, dynamic>{
    'tableName': _tableName,
    'relations': relations,
    'relationsDepth': relationsDepth,
  });

  return reflector.deserialize<T>(mapObject);
}