toMap method

Map<String, dynamic> toMap()

Converts to map format for rules execution

Implementation

Map<String, dynamic> toMap() => {
  if (event != null) 'event': event!.toMap(),
  if (navigation != null) ...navigation!.toMap(),
  if (view != null) ...view!.toMap(),
  ...appContext.toMap(),
};