DynamoDBAction.fromJson constructor
DynamoDBAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DynamoDBAction.fromJson(Map<String, dynamic> json) {
return DynamoDBAction(
hashKeyField: json['hashKeyField'] as String,
hashKeyValue: json['hashKeyValue'] as String,
tableName: json['tableName'] as String,
hashKeyType: json['hashKeyType'] as String?,
operation: json['operation'] as String?,
payload: json['payload'] != null
? Payload.fromJson(json['payload'] as Map<String, dynamic>)
: null,
payloadField: json['payloadField'] as String?,
rangeKeyField: json['rangeKeyField'] as String?,
rangeKeyType: json['rangeKeyType'] as String?,
rangeKeyValue: json['rangeKeyValue'] as String?,
);
}