$declaration constant
BridgeClassDef
const $declaration
Compile-time bridge class declaration for $JsonCodec
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type, $extends: BridgeTypeRef(ConvertTypes.encoding)),
constructors: {
'': BridgeConstructorDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
params: [],
namedParams: [
BridgeParameter('reviver',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)), true)
]))
},
methods: {},
getters: {
'decoder': BridgeMethodDef(BridgeFunctionDef(
returns:
BridgeTypeAnnotation(BridgeTypeRef(ConvertTypes.jsonDecoder)))),
'encoder': BridgeMethodDef(BridgeFunctionDef(
returns:
BridgeTypeAnnotation(BridgeTypeRef(ConvertTypes.jsonEncoder)))),
},
setters: {},
fields: {},
wrap: true);