toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (secret != null) {
    _json[r'secret'] = secret;
  }
  if (qrCode != null) {
    _json[r'qr_code'] = qrCode;
  }
  return _json;
}