toJson method
Implementation
Map<String, dynamic> toJson() => {
'success': success,
if (operation != null) 'operation': operation,
if (setting != null) 'setting': setting,
if (value != null) 'value': value,
if (previousValue != null) 'previousValue': previousValue,
if (newValue != null) 'newValue': newValue,
if (error != null) 'error': error,
};