Record class

This should support nested fields. But at the moment, we don't support it.

Inheritance

Constructors

Record()
Record.from(String k, dynamic v)
Record.fromMap(Map<String, dynamic> data)

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

addField(String fieldName, dynamic fieldValue) Record
contains(String field) bool
get(String field) → dynamic
getBool(String field, {bool? defaultValue}) bool?
getDouble(String field, {double? defaultValue}) double?
getElement(String field) → Element?
getElements(String field, {List<Element>? defaultValue}) List<Element>?
getField(String fieldName) → dynamic
getFieldNames() List<String>
getFieldWithDefault(String fieldName, {dynamic defaultValue}) → dynamic
getInt(String field, {int? defaultValue}) int?
getList(String field) List?
getListString(String field, {List<String>? defaultValue}) List<String>?
getString(String field, {String? defaultValue}) String?
mergeWith(Record otherRecord) Record
Merge <@code otherRecord> to this record And return the result as a new record.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
path(String path) → dynamic
removeField(String fieldName) Record
removeFields(List<String> excludeFields) Record
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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