toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dataSource != null) 'dataSource': dataSource!,
      if (matchInfo != null)
        'matchInfo': matchInfo!.map((value) => value.toJson()).toList(),
      if (recipients != null) 'recipients': recipients!,
      if (resourceInfo != null) 'resourceInfo': resourceInfo!.toJson(),
      if (ruleInfo != null) 'ruleInfo': ruleInfo!.toJson(),
      if (suppressedActionTypes != null)
        'suppressedActionTypes': suppressedActionTypes!,
      if (trigger != null) 'trigger': trigger!,
      if (triggeredActionInfo != null)
        'triggeredActionInfo':
            triggeredActionInfo!.map((value) => value.toJson()).toList(),
      if (triggeredActionTypes != null)
        'triggeredActionTypes': triggeredActionTypes!,
      if (triggeringUserEmail != null)
        'triggeringUserEmail': triggeringUserEmail!,
    };