JSONObject class abstract

This class Represent much other classes

Implementers

Constructors

JSONObject(Map<String, dynamic> _data)
data must be in JSON (Map<String, dynamic>)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator List<String>
Required Fields will be checked in validation
no setter

Methods

getBoolValue(String key, {bool defaultValue = false}) bool
Return Bool Value from Data
getData() Map<String, dynamic>
getDoubleValue(String key, {double defaultValue = 0}) double
Return Double Value from Data
getIntValue(String key, {int defaultValue = 0}) int
Return Int Value from Data
getOnly(List<String> keys) Map<String, dynamic>
Returns Map with specified Keys in List<String> keys
getStringValue(String key, {String defaultValue = ''}) String
Return String Value from Data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(Map<String, dynamic> data) → dynamic
Set Data
setValue(String key, dynamic value) → dynamic
Set Value in Data
toString() String
A string representation of this object.
inherited
validate({List<String>? optionalValidator}) bool
Validates Data

Operators

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