toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (deviceAllowed != null) 'deviceAllowed': deviceAllowed!,
      if (downloadsAcquired != null) 'downloadsAcquired': downloadsAcquired!,
      if (justAcquired != null) 'justAcquired': justAcquired!,
      if (kind != null) 'kind': kind!,
      if (maxDownloadDevices != null)
        'maxDownloadDevices': maxDownloadDevices!,
      if (message != null) 'message': message!,
      if (nonce != null) 'nonce': nonce!,
      if (reasonCode != null) 'reasonCode': reasonCode!,
      if (restricted != null) 'restricted': restricted!,
      if (signature != null) 'signature': signature!,
      if (source != null) 'source': source!,
      if (volumeId != null) 'volumeId': volumeId!,
    };