SocketSendModel class

Implementers
Annotations
  • @freezed

Constructors

SocketSendModel()
const
factory
SocketSendModel.fromJson(Map<String, dynamic> json)
factory
SocketSendModel.ping({@Default("ping") @JsonKey(name: "type") String type})
factory
SocketSendModel.sp({@Default("") @JsonKey(name: "type") String type, @JsonKey(name: "jsonString", toJson: modelToString) required SpView model})
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

Methods

map<TResult extends Object?>(TResult $default(_SocketSendModel value), {required TResult sp(SpViewSendModel value), required TResult ping(PingViewSendModel value)}) → TResult
inherited
mapOrNull<TResult extends Object?>(TResult? $default(_SocketSendModel value)?, {TResult? sp(SpViewSendModel value)?, TResult? ping(PingViewSendModel value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>(TResult $default(_SocketSendModel value)?, {TResult sp(SpViewSendModel value)?, TResult ping(PingViewSendModel value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>(TResult $default()?, {TResult sp(String type, SpView model)?, TResult ping(String type)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this SocketSendModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(), {required TResult sp(String type, SpView model), required TResult ping(String type)}) → TResult
inherited
whenOrNull<TResult extends Object?>(TResult? $default()?, {TResult? sp(String type, SpView model)?, TResult? ping(String type)?}) → TResult?
inherited

Operators

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