mirror of
https://github.com/esiur/esiur-dart.git
synced 2026-04-03 17:58:21 +00:00
1.3
This commit is contained in:
25
lib/src/Data/Record.dart
Normal file
25
lib/src/Data/Record.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:esiur/src/Resource/Template/TemplateDescriber.dart';
|
||||
|
||||
import 'IRecord.dart';
|
||||
import 'KeyList.dart';
|
||||
|
||||
class Record extends KeyList with IRecord {
|
||||
Map<String, dynamic> _props;
|
||||
|
||||
@override
|
||||
Map<String, dynamic> serialize() {
|
||||
return _props;
|
||||
}
|
||||
|
||||
@override
|
||||
deserialize(Map<String, dynamic> value) {
|
||||
_props = value;
|
||||
}
|
||||
|
||||
operator [](index) => _props[index];
|
||||
operator []=(index, value) => _props[index] = value;
|
||||
|
||||
@override
|
||||
// TODO: implement template
|
||||
TemplateDescriber get template => throw UnimplementedError();
|
||||
}
|
||||
Reference in New Issue
Block a user