Entry class

An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).

Constructors

Entry({Uri? fullUrl, Resource? resource, Search? search})
Creates a new Entry instance.
Entry.fromJson(JsonObject _json)
Creates a new Entry instance from the provided JSON object.

Properties

fullUrl Uri?
The Absolute URL for the resource. This must be provided for all resources in a bundle if an absolute URL is needed (e.g. for signatures). The fullUrl SHALL not disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id.
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Entry instance to a JSON object.
no setter
resource Resource?
The Resources for the entry.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Information about the search process that lead to the creation of this entry.
no setter

Methods

copyWith({Uri? fullUrl, Resource? resource, Search? search}) Entry
Creates a copy of this Entry but with the given fields replaced with the new values.
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.
override

Constants

fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Entry
fullUrlField → const FieldDefinition<Uri>
Field definition for fullUrl
resourceField → const FieldDefinition<Resource>
Field definition for resource
searchField → const FieldDefinition<Search>
Field definition for search