FreezedMapOptions class Null safety

Options for enabling/disabling specific Union.map features;

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, createToJson: false, anyMap: true)

Constructors

FreezedMapOptions({bool? map, bool? mapOrNull, bool? maybeMap})
Options for enabling/disabling specific Union.map features;
const
FreezedMapOptions.fromJson(Map json)
Decode a FreezedMapOptions from a build.yaml
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
map bool?
Whether to generate Union.map
final
mapOrNull bool?
Whether to generate Union.mapOrNull
final
maybeMap bool?
Whether to generate Union.maybeMap
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

all → const FreezedMapOptions
Enables the generation of all Union.map features
FreezedMapOptions(map: true, mapOrNull: true, maybeMap: true)
none → const FreezedMapOptions
Disables the generation of all Union.map features
FreezedMapOptions(map: false, mapOrNull: false, maybeMap: false)