SNSTopicPublishAction.fromJson constructor

SNSTopicPublishAction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SNSTopicPublishAction.fromJson(Map<String, dynamic> json) {
  return SNSTopicPublishAction(
    targetArn: json['targetArn'] as String,
    payload: json['payload'] != null
        ? Payload.fromJson(json['payload'] as Map<String, dynamic>)
        : null,
  );
}