createRoleProfile method

Future<RoleProfileModel> createRoleProfile({
  1. required String orgId,
  2. required String name,
  3. String? description,
})

Implementation

Future<RoleProfileModel> createRoleProfile({
  required String orgId,
  required String name,
  String? description,
}) async {
  final response = await _client
      .from('role_profiles')
      .insert({'org_id': orgId, 'name': name, 'description': ?description})
      .select()
      .single();
  return RoleProfileModel.fromJson(response);
}