toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (alternateText != null) 'alternateText': alternateText!,
      if (initialRotatingBarcodeValues != null)
        'initialRotatingBarcodeValues': initialRotatingBarcodeValues!,
      if (renderEncoding != null) 'renderEncoding': renderEncoding!,
      if (showCodeText != null) 'showCodeText': showCodeText!,
      if (totpDetails != null) 'totpDetails': totpDetails!,
      if (type != null) 'type': type!,
      if (valuePattern != null) 'valuePattern': valuePattern!,
    };