import '../models/settings.dart';
import 'api_client.dart';

class SettingsService {
  final _client = ApiClient.instance;

  Future<BrandSettings> getBrand() async {
    final res = await _client.get('/companies/me/brand');
    return BrandSettings.fromJson(res.data as Map<String, dynamic>);
  }

  Future<BrandSettings> updateBrand(Map<String, dynamic> data) async {
    final res = await _client.patch('/companies/me/brand', data: data);
    return BrandSettings.fromJson(res.data as Map<String, dynamic>);
  }
}
