JSONDecoder class

Constructors

JSONDecoder(dynamic json)

Properties

getId int
no setter
hashCode int
The hash code for this object.
no setterinherited
jsonList List
latefinal
jsonObject Map<String, dynamic>
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBool(String key, [bool defaultValue = false]) bool
getDateTime(String key, {DateTime? defaultValue, bool local = true}) DateTime
getDateTimeOrNull(String key, {bool local = true}) DateTime?
getDouble(String key, [double defaultValue = 0]) double
getDoubleOrNull(String key) double?
getDynamic(String key) → dynamic
getEnum<T extends Enum>(String key, List<T> options, T defaultValue) → T
getEnumOrNull<T extends Enum>(String key, List<T> options) → T?
getInt(String key, [int defaultValue = 0]) int
getIntOrNull(String key) int?
getMapListOrNull(String? key) List<Map<String, dynamic>>?
getMapObjectOrNull(String key) Map<String, dynamic>?
getMapOrNull(String? key) Map<String, dynamic>?
getObjectList<T>(String key, [List<T> defaultValue = const []]) List<T>
getObjectListOrNull<T>(String key) List<T>?
getString(String key, {String defaultValue = "", bool utf8 = false}) String
getStringOrNull(String key) String?
has(String key) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateString(Object? value) String?

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

objectToString(Map<String, dynamic> object) String