ApiParserFastor class
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
-
convertBooleanToZeroAndOne(
bool? b) → int -
isFailed(
int? n) → bool -
isFalse(
int? n) → bool -
isPaginateLaravelEnd(
int? currentPage, int? last_page) → bool - 1- example totalBar record is 100, while pagiantor is 10 current page is 9 "to" is 10
-
isSuccess(
int? n) → bool -
example success: { "status": "success", "code": 1,
example faild: { "status": "error", "code": 0, "message": "Unauthorized" }
-
isTrue(
int? n) → bool -
parseBoolean(
String? n) → bool - "block": "0", >> means false
-
parseBoolean_int(
int? n) → bool -
parseDoubleOrInt(
dynamic data) → double - fix when api return value someTime in "Int" and sometimes in "Double" like: { "data": 15 } or some times return { "data": 13.5 } remove command "," if found in at big numbers come from backend
-
parseIntDynamic(
dynamic data) → int -
verseBooleanZeroToOneAndViseVersa(
int? i) → int - used to change status from "favorite" to "unfavorite" and vise versa