UnionType class

Union avro type

Inheritance

Constructors

UnionType.new({required List<AvroType> type})
const
UnionType.fromJson(Map<String, dynamic> json)
Create union from json schema
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type List<AvroType>
Types of union
final

Methods

decode(DataBuffer data) → dynamic
Decode data for current type
override
encode(dynamic payload) Uint8List
Encode payload for current type
override
isType(dynamic payload) bool
Is payload of current type
inherited
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