toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final functionArn = this.functionArn;
  final invocationType = this.invocationType;
  final topicArn = this.topicArn;
  return {
    'FunctionArn': functionArn,
    if (invocationType != null) 'InvocationType': invocationType.toValue(),
    if (topicArn != null) 'TopicArn': topicArn,
  };
}