StreamDescriptionSummary.fromJson constructor
StreamDescriptionSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StreamDescriptionSummary.fromJson(Map<String, dynamic> json) {
return StreamDescriptionSummary(
enhancedMonitoring: (json['EnhancedMonitoring'] as List)
.whereNotNull()
.map((e) => EnhancedMetrics.fromJson(e as Map<String, dynamic>))
.toList(),
openShardCount: json['OpenShardCount'] as int,
retentionPeriodHours: json['RetentionPeriodHours'] as int,
streamARN: json['StreamARN'] as String,
streamCreationTimestamp: nonNullableTimeStampFromJson(
json['StreamCreationTimestamp'] as Object),
streamName: json['StreamName'] as String,
streamStatus: (json['StreamStatus'] as String).toStreamStatus(),
consumerCount: json['ConsumerCount'] as int?,
encryptionType: (json['EncryptionType'] as String?)?.toEncryptionType(),
keyId: json['KeyId'] as String?,
);
}