toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final actions = this.actions;
  final sql = this.sql;
  final awsIotSqlVersion = this.awsIotSqlVersion;
  final description = this.description;
  final errorAction = this.errorAction;
  final ruleDisabled = this.ruleDisabled;
  return {
    'actions': actions,
    'sql': sql,
    if (awsIotSqlVersion != null) 'awsIotSqlVersion': awsIotSqlVersion,
    if (description != null) 'description': description,
    if (errorAction != null) 'errorAction': errorAction,
    if (ruleDisabled != null) 'ruleDisabled': ruleDisabled,
  };
}