toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final map = super.toJson();
  if (actions != null && actions!.isNotEmpty) {
    final props = <String, dynamic>{};
    map["actions"] = props;
    for (var key in actions!.keys) {
      props[key] = actions![key]!.getValueType();
    }
  }
  return map;
}