SpryJson class
Spry Request/Response JSON middleware.
Example:
import 'package:spry/spry.dart';
import 'package:spry_json/spry_json.dart';
void main() {
// ...
spry.use(SpryJson());
// ...
}
Constructors
Properties
- decoder → JsonDecoder
-
Returns the decoder of
this, converting fromTtoS.no setterinherited - encoder → JsonEncoder
-
Returns the encoder from
StoT.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
String, Object?> -
Inverts
this.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
Context context, Next next) → FutureOr< void> -
Disguised as
Middleware -
decode(
String source, {Object? reviver(Object? key, Object? value)?}) → dynamic -
Parses the string and returns the resulting Json object.
inherited
-
encode(
Object? value, {Object? toEncodable(dynamic object)?}) → String -
Converts
valueto a JSON string.inherited -
fuse<
R> (Codec< String, R> other) → Codec<Object?, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited