createPerson method

Future<(Person?, String?)> createPerson(
  1. String name, {
  2. List<String> groupIds = const [],
  3. dynamic metadata,
})

Implementation

Future<(Person?, String?)> createPerson(
  String name, {
  List<String> groupIds = const [],
  dynamic metadata,
}) async {
  var response = await _bridge.invokeMethod("createPerson", [
    name,
    groupIds,
    metadata,
  ]);
  return _itemResponseFromJson(response, Person.fromJson);
}