toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "binaryData": _dataToBase64(binaryData),
      "resourceType": resourceType.value,
      "privateKey": _dataToBase64(privateKey)
    }.clearNulls();