DParse class final
A utility class for parsing mostly related to http request.
Constructors
Properties
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
exceptionMessage(
dynamic value) → String - Parsing message error of Exception.
-
httpMethodMessage(
String value) → String -
Parsing message of http method value like
DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
orPUT
. -
httpStatusMessage(
int statusCode) → String -
Parsing message of
statusCode
value, usually used when catching unsuitable response value. -
mayToBool(
dynamic value) → bool? -
mayToDate(
dynamic value) → DateTime? -
mayToDouble(
dynamic value) → double? -
mayToInt(
dynamic value) → int? -
mayToList<
U extends dynamic> (dynamic value) → List< U> ? -
mayToMap<
U extends dynamic, V extends dynamic> (dynamic value) → Map< U, V> ? -
mayToText(
dynamic value) → String? -
to<
T extends dynamic> (dynamic value, [T? onError]) → T -
toBool(
dynamic value, [bool? onError]) → bool -
toDate(
dynamic value, [DateTime? onError]) → DateTime -
toDouble(
dynamic value, [double? onError]) → double -
toInt(
dynamic value, [int? onError]) → int -
toList<
U extends dynamic> (dynamic value, [List< U> ? onError]) → List<U> -
toMap<
U extends dynamic, V extends dynamic> (dynamic value, [Map< U, V> ? onError]) → Map<U, V> -
toText(
dynamic value, [String? onError]) → String