JsonSerializerOptions class
Options for the JSON serializer.
Constructors
-
JsonSerializerOptions({List<
GenericType> types = const [], List<JsonConverter> converters = const []}) - Creates a new instance of JsonSerializerOptions.
Properties
-
converters
→ List<
JsonConverter> -
The list of registered converters.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ List<
GenericType> -
The list of user-defined types.
final
Methods
-
getConverter(
TypeInfo type) → JsonConverter -
Retrieves the appropriate JsonConverter for the given
type
. -
getGenericType(
TypeInfo type) → GenericType -
Retrieves the appropriate
GenericType
for the giventype
. -
merge(
JsonSerializerOptions? options) → JsonSerializerOptions -
Merges the current JsonSerializerOptions with the provided
options
. Returns a new JsonSerializerOptions instance. -
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