2019-01-07 01:38:04 +00:00
|
|
|
import 'dart:convert';
|
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
|
|
|
import 'package:collection/collection.dart';
|
|
|
|
import 'package:meta/meta.dart';
|
|
|
|
part 'has_map.g.dart';
|
|
|
|
|
|
|
|
Map _fromString(v) => json.decode(v.toString()) as Map;
|
|
|
|
|
|
|
|
String _toString(Map v) => json.encode(v);
|
|
|
|
|
2019-01-09 19:25:05 +00:00
|
|
|
@serializable
|
2019-01-07 01:38:04 +00:00
|
|
|
abstract class _HasMap {
|
|
|
|
@SerializableField(
|
2019-01-09 19:25:05 +00:00
|
|
|
serializer: #_toString,
|
|
|
|
deserializer: #_fromString,
|
|
|
|
isNullable: false,
|
|
|
|
serializesTo: String)
|
2019-01-07 01:38:04 +00:00
|
|
|
Map get value;
|
|
|
|
}
|