RecordModel class

Response DTO of a single record model.

Implemented types
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

RecordModel({String id = "", String created = "", String updated = "", String collectionId = "", String collectionName = "", Map<String, List<RecordModel>>? expand, Map<String, dynamic>? data})

Properties

collectionId String
getter/setter pair
collectionName String
getter/setter pair
created String
getter/setter pair
data Map<String, dynamic>
getter/setter pair
expand Map<String, List<RecordModel>>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updated String
getter/setter pair

Methods

getBoolValue(String fieldNameOrPath, [bool? defaultValue]) bool
An alias for getDataValue<bool>().
getDataValue<T>(String fieldNameOrPath, [T? defaultValue]) → T
Extracts a single value from data by a dot-notation path and tries to cast it to the specified generic type.
getDoubleValue(String fieldNameOrPath, [double? defaultValue]) double
An alias for getDataValue<double>().
getIntValue(String fieldNameOrPath, [int? defaultValue]) int
An alias for getDataValue<int>().
getListValue<T>(String fieldNameOrPath, [List<T>? defaultValue]) List<T>
An alias for getDataValue<List<T>>().
getStringValue(String fieldNameOrPath, [String? defaultValue]) String
An alias for getDataValue<String>().
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) RecordModel