blob: ba45321ffa777bf72084af6a9943e07f95de32cd [file] [edit]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:messages/messages.dart';
class Serialization<T> {
final T data;
Serialization(this.data);
}
abstract class Serializer<T> {
final bool writeIds;
Serializer(this.writeIds);
Serialization<T> serialize(
String hash,
String locale,
List<Message> messages, [
List<int>? keepOnly,
]);
}