CloudWatchLogsLogStream.fromJson constructor

CloudWatchLogsLogStream.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CloudWatchLogsLogStream.fromJson(Map<String, dynamic> json) {
  return CloudWatchLogsLogStream(
    batchCount: json['BatchCount'] as int?,
    batchSize: json['BatchSize'] as int?,
    bufferDuration: json['BufferDuration'] as int?,
    datetimeFormat: json['DatetimeFormat'] as String?,
    encoding: (json['Encoding'] as String?)?.toCloudWatchLogsEncoding(),
    file: json['File'] as String?,
    fileFingerprintLines: json['FileFingerprintLines'] as String?,
    initialPosition: (json['InitialPosition'] as String?)
        ?.toCloudWatchLogsInitialPosition(),
    logGroupName: json['LogGroupName'] as String?,
    multiLineStartPattern: json['MultiLineStartPattern'] as String?,
    timeZone: (json['TimeZone'] as String?)?.toCloudWatchLogsTimeZone(),
  );
}