JournalKinesisStreamDescription.fromJson constructor

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

Implementation

factory JournalKinesisStreamDescription.fromJson(Map<String, dynamic> json) {
  return JournalKinesisStreamDescription(
    kinesisConfiguration: KinesisConfiguration.fromJson(
        json['KinesisConfiguration'] as Map<String, dynamic>),
    ledgerName: json['LedgerName'] as String,
    roleArn: json['RoleArn'] as String,
    status: (json['Status'] as String).toStreamStatus(),
    streamId: json['StreamId'] as String,
    streamName: json['StreamName'] as String,
    arn: json['Arn'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    errorCause: (json['ErrorCause'] as String?)?.toErrorCause(),
    exclusiveEndTime: timeStampFromJson(json['ExclusiveEndTime']),
    inclusiveStartTime: timeStampFromJson(json['InclusiveStartTime']),
  );
}