TimestreamAction.fromJson constructor
TimestreamAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TimestreamAction.fromJson(Map<String, dynamic> json) {
return TimestreamAction(
databaseName: json['databaseName'] as String,
dimensions: (json['dimensions'] as List)
.whereNotNull()
.map((e) => TimestreamDimension.fromJson(e as Map<String, dynamic>))
.toList(),
roleArn: json['roleArn'] as String,
tableName: json['tableName'] as String,
timestamp: json['timestamp'] != null
? TimestreamTimestamp.fromJson(
json['timestamp'] as Map<String, dynamic>)
: null,
);
}