createPerson method

Future<Party> createPerson(
  1. CreatePersonRequest request
)

Create person with roles and contacts

Implementation

Future<Party> createPerson(CreatePersonRequest request) async {
  final response = await _apiClient.post<Map<String, dynamic>>(
    '/api/v1/parties/persons',
    data: request.toJson(),
  );

  return Party.fromJson(response);
}