INNER CODE UNIT · Dart
EJson
realm/realm-dart · packages/ejson_annotation/lib/ejson_annotation.dart:8
class EJson<T> {
final EJsonEncoder<T>? encoder;
final EJsonDecoder<T>? decoder;
const EJson._(this.encoder, this.decoder);
const EJson() : this._(null, null);
const EJson.custom({required EJsonEncoder<T> this.encoder, required EJsonDecoder<T> this.decoder});
}
typedef EJsonDecoder<T> = T Function(EJsonValue ejson);
typedef EJsonEncoder<T> = EJsonValue Function(T object);
// while we wait for
// typedef EJsonValue = Null | String | bool | int | double | List<EJsonValue> | Map<String, EJsonValue>;
typedef EJsonValue = Object?;