ClonableMixin<T> mixin

The ClonableMixin mixin class used to clone and serialize objects.

Implemented types
Mixin Applications

Properties

fields CloneFields<CloneField>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
jsonClassCode String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterDecode(Map<String, dynamic> json) → void
Raised after this object fields are set with the json map
override
afterEncode(Map<String, dynamic> json) → void
Raised after the json map is filled with the object fields
override
beforeDecode(Map<String, dynamic> json) → void
Raised before this object fields are set with the json map
override
beforeEncode(Map<String, dynamic> json) → void
Raised before the json map is filled with the object fields
override
clone({bool deep = false}) → T
Creates an obj clone.
override
create(Map<String, dynamic> json) → T
Creates an empty object. json map is provided in case of 'final' fields needed within the class constructor. In that case the CloneField definition might have an empty setter
fromJson(dynamic json) → T?
override
getMap(Map json) → void
Gets the json map values for this instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(ClonableBaseInterface<T> obj, {bool deep = false}) → void
Sets this object as a copy of obj
inherited
setMap(Map json, {bool deep = false}) → void
Sets the json map values for this instance.
inherited
toJson() → dynamic
override
toString() String
A string representation of this object.
inherited

Operators

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