FBModel class

Implementers
Available Extensions
Annotations
  • @freezed

Constructors

FBModel.bool(bool value)
factory
FBModel.createFrom(dynamic data)
factory
FBModel.dynamic(dynamic value)
factory
FBModel.fromJson(Map<String, dynamic> json)
factory
FBModel.json(Map<String, dynamic> value)
factory
FBModel.list(List value)
factory
FBModel.nil()
const
factory
FBModel.num(num value)
factory
FBModel.string(String value)
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?>({required TResult string(StringData value), required TResult num(NumData value), required TResult bool(BoolData value), required TResult list(ListData value), required TResult json(JsonData value), required TResult dynamic(DynamicData value), required TResult nil(NullData value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? string(StringData value)?, TResult? num(NumData value)?, TResult? bool(BoolData value)?, TResult? list(ListData value)?, TResult? json(JsonData value)?, TResult? dynamic(DynamicData value)?, TResult? nil(NullData value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult string(StringData value)?, TResult num(NumData value)?, TResult bool(BoolData value)?, TResult list(ListData value)?, TResult json(JsonData value)?, TResult dynamic(DynamicData value)?, TResult nil(NullData value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult string(String value)?, TResult num(num value)?, TResult bool(bool value)?, TResult list(List value)?, TResult json(Map<String, dynamic> value)?, TResult dynamic(dynamic value)?, TResult nil()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult string(String value), required TResult num(num value), required TResult bool(bool value), required TResult list(List value), required TResult json(Map<String, dynamic> value), required TResult dynamic(dynamic value), required TResult nil()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? string(String value)?, TResult? num(num value)?, TResult? bool(bool value)?, TResult? list(List value)?, TResult? json(Map<String, dynamic> value)?, TResult? dynamic(dynamic value)?, TResult? nil()?}) → TResult?
inherited

Operators

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

Static Methods

freezedFromJson(dynamic v) FBModel