public abstract class BaseCanvasModel extends Object
| Constructor and Description |
|---|
BaseCanvasModel() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
toJsonObject(Boolean serializeNulls)
Wraps a Canvas model inside of a JSON object so that the resulting serialized object
can be pushed to Canvas create/edit endpoints.
|
Map<String,List<String>> |
toPostMap(boolean includeNulls) |
public com.google.gson.JsonObject toJsonObject(Boolean serializeNulls)
{assignment: {name: "Assignment 1"}}.
This method adds the outer "assignment" container based on CanvasObject notations on the model classesserializeNulls - Whether or not to include null fields in the serialized JSON. Defaults to false if nullCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.