toJson method
Implementation
Map<String, dynamic> toJson() {
final batchCount = this.batchCount;
final batchSize = this.batchSize;
final bufferDuration = this.bufferDuration;
final datetimeFormat = this.datetimeFormat;
final encoding = this.encoding;
final file = this.file;
final fileFingerprintLines = this.fileFingerprintLines;
final initialPosition = this.initialPosition;
final logGroupName = this.logGroupName;
final multiLineStartPattern = this.multiLineStartPattern;
final timeZone = this.timeZone;
return {
if (batchCount != null) 'BatchCount': batchCount,
if (batchSize != null) 'BatchSize': batchSize,
if (bufferDuration != null) 'BufferDuration': bufferDuration,
if (datetimeFormat != null) 'DatetimeFormat': datetimeFormat,
if (encoding != null) 'Encoding': encoding.toValue(),
if (file != null) 'File': file,
if (fileFingerprintLines != null)
'FileFingerprintLines': fileFingerprintLines,
if (initialPosition != null) 'InitialPosition': initialPosition.toValue(),
if (logGroupName != null) 'LogGroupName': logGroupName,
if (multiLineStartPattern != null)
'MultiLineStartPattern': multiLineStartPattern,
if (timeZone != null) 'TimeZone': timeZone.toValue(),
};
}