UsePropertiesOnMissingSerializationInformation class Fallback Behavior

Serializes classes by inspecting their properties and automatically converting them into php-properties. Optionally, if inspectPrivate is set to true, it will also inspect private properties. If inspectGetters is set to true, it will additionally inspect getters. Both options can be combined to also inspect private getters.

This Handler is only usable on the dart-vm. Neither on the web nor when using Flutter. Do not import this file if running on Flutter!

Implemented types

Constructors

UsePropertiesOnMissingSerializationInformation({bool inspectPrivate = false, bool inspectGetters = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inspectGetters bool
final
inspectPrivate bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleSerialization(Type objectType) PhpSerializationObjectInformation<Object>
Return a PhpSerializationObjectInformation for the requested class
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited