18 lines
522 B
Dart
18 lines
522 B
Dart
import 'dart:async';
|
|
|
|
import 'package:fcs/fcs/common/domain/vo/contact.dart';
|
|
import 'package:fcs/fcs/common/pages/model/base_model.dart';
|
|
import 'package:fcs/fcs/common/services/services.dart';
|
|
import 'package:logging/logging.dart';
|
|
|
|
class ContactModel extends BaseModel {
|
|
final log = Logger('ContactModel');
|
|
|
|
Future<void> saveContact(Contact contact) async {
|
|
await request("/contact", "PUT",
|
|
payload: contact.toMap(), token: await Services.instance.authService.getToken());
|
|
notifyListeners();
|
|
}
|
|
|
|
}
|