StreamDescription.fromJson constructor
StreamDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StreamDescription.fromJson(Map<String, dynamic> json) {
return StreamDescription(
creationRequestDateTime:
timeStampFromJson(json['CreationRequestDateTime']),
keySchema: (json['KeySchema'] as List?)
?.whereNotNull()
.map((e) => KeySchemaElement.fromJson(e as Map<String, dynamic>))
.toList(),
lastEvaluatedShardId: json['LastEvaluatedShardId'] as String?,
shards: (json['Shards'] as List?)
?.whereNotNull()
.map((e) => Shard.fromJson(e as Map<String, dynamic>))
.toList(),
streamArn: json['StreamArn'] as String?,
streamLabel: json['StreamLabel'] as String?,
streamStatus: (json['StreamStatus'] as String?)?.toStreamStatus(),
streamViewType: (json['StreamViewType'] as String?)?.toStreamViewType(),
tableName: json['TableName'] as String?,
);
}