1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-07-03 23:15:02 +00:00
Files
comunicmobile/lib/models/cache_model.dart
2022-03-10 20:36:55 +01:00

19 lines
404 B
Dart

import 'package:comunic/helpers/database/database_contract.dart';
/// Cache base model
///
/// @author Pierre HUBERT
abstract class CacheModel {
final int id;
const CacheModel({required this.id});
/// Initialize a CacheModel from a map
CacheModel.fromMap(Map<String, dynamic> map)
: id = map[BaseTableContract.C_ID];
/// Convert the object to a map
Map<String, dynamic> toMap();
}