SourceTableFeatureDetails.fromJson constructor
SourceTableFeatureDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SourceTableFeatureDetails.fromJson(Map<String, dynamic> json) {
return SourceTableFeatureDetails(
globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?)
?.whereNotNull()
.map((e) =>
GlobalSecondaryIndexInfo.fromJson(e as Map<String, dynamic>))
.toList(),
localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?)
?.whereNotNull()
.map((e) =>
LocalSecondaryIndexInfo.fromJson(e as Map<String, dynamic>))
.toList(),
sSEDescription: json['SSEDescription'] != null
? SSEDescription.fromJson(
json['SSEDescription'] as Map<String, dynamic>)
: null,
streamDescription: json['StreamDescription'] != null
? StreamSpecification.fromJson(
json['StreamDescription'] as Map<String, dynamic>)
: null,
timeToLiveDescription: json['TimeToLiveDescription'] != null
? TimeToLiveDescription.fromJson(
json['TimeToLiveDescription'] as Map<String, dynamic>)
: null,
);
}