toJson method

Map<String, dynamic> toJson()

Implementation

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