MBAutomationView class
A view of MBAutomation.
Constructors
-
MBAutomationView({required String view, Map<
String, dynamic> ? metadata}) -
Initializes a view with the parameters passed. Timestamp is set with
DateTime.now()
. @param view The name of the view. @param metadata Additional metadata for the view. -
MBAutomationView.fromDbData({required Map<
String, dynamic> dbData}) -
Initializes a view with the
Map
retrieved from the DB. @param dbData data retrieved from the DB.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The id of the view.
final
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata for the view.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp of the view.
final
- view → String
-
The view name.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toApiDictionary(
) → Map< String, dynamic> -
Converts this view to a
Map
to send it with MBurger APIs. -
toDbDictionary(
) → Map< String, dynamic> -
Converts this view to a
Map
to save it in the DB. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited