toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (additionalData != null) 'additionalData': additionalData!,
      if (createTime != null) 'createTime': createTime!,
      if (device != null) 'device': device!,
      if (deviceId != null) 'deviceId': deviceId!,
      if (expireTime != null) 'expireTime': expireTime!,
      if (managementMode != null) 'managementMode': managementMode!,
      if (name != null) 'name': name!,
      if (policy != null) 'policy': policy!,
      if (ttl != null) 'ttl': ttl!,
      if (userId != null) 'userId': userId!,
      if (value != null) 'value': value!,
    };