toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final roleArn = this.roleArn;
  final topic = this.topic;
  final qos = this.qos;
  return {
    'roleArn': roleArn,
    'topic': topic,
    if (qos != null) 'qos': qos,
  };
}