EntityRes class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

EntityRes({Object? entity, required bool ok, String? msg})
const
EntityRes.fromJson(Map<String, dynamic> json)
factory

Properties

entity Object?
final
hashCode int
The hash code for this object.
no setteroverride
msg String?
final
ok bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Object? entity, bool? ok, String? msg}) EntityRes

Available on EntityRes, provided by the $EntityResExtension extension

copyWithWrapped({Wrapped<Object?>? entity, Wrapped<bool>? ok, Wrapped<String?>? msg}) EntityRes

Available on EntityRes, provided by the $EntityResExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const EntityRes Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(EntityRes instance)