createProject method
Implementation
Future<ProjectModel> createProject({
required String name,
required String ownerId,
required String baseLocale,
List<String>? targetLocales,
String? description,
}) async {
final response = await _dio.post(
'$_baseUrl/projects',
data: {
'name': name,
'description': description,
'baseLocale': baseLocale,
'targetLocales': targetLocales?.map((e) => e).toList(),
},
options: Options(headers: {'Content-Type': 'application/json'}),
);
return ProjectModel.fromJson(response.data);
}