JsonRender class
A class that implements the Render interface to render JSON data.
- Implemented types
Constructors
- JsonRender(dynamic data)
-
Constructor to initialize the JsonRender with the given
data.
Properties
- data → dynamic
-
The data to be rendered as JSON.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Response response) → void -
Renders the JSON data to the
response.override -
toString(
) → String -
A string representation of this object.
inherited
-
writeContentType(
Response response) → void -
Sets the Content-Type header to 'application/json; charset=utf-8'.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited