BulkRequest class

Freezed union class for making different types of Bulk Requests

Annotations
  • @freezed

Constructors

BulkRequest.group({required Uri base, required FhirId id, FhirDateTime? since, List<WhichResource>? types, Client? client})
Group
const
factory
BulkRequest.patient({required Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client})
Patient
const
factory
BulkRequest.system({required Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client})
System
const
factory

Properties

base Uri
no setterinherited
client → Client?
no setterinherited
copyWith → $BulkRequestCopyWith<BulkRequest>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
since → FhirDateTime?
no setterinherited
types List<WhichResource>?
no setterinherited

Methods

map<TResult extends Object?>({required TResult patient(_BulkPatientRequest value), required TResult group(_BulkGroupRequest value), required TResult system(_BulkSystemRequest value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? patient(_BulkPatientRequest value)?, TResult? group(_BulkGroupRequest value)?, TResult? system(_BulkSystemRequest value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult patient(_BulkPatientRequest value)?, TResult group(_BulkGroupRequest value)?, TResult system(_BulkSystemRequest value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult patient(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client)?, TResult group(Uri base, FhirId id, FhirDateTime? since, List<WhichResource>? types, Client? client)?, TResult system(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({required Map<String, String> headers}) Future<List<Resource?>>
Actually perform the request by type
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult patient(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client), required TResult group(Uri base, FhirId id, FhirDateTime? since, List<WhichResource>? types, Client? client), required TResult system(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? patient(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client)?, TResult? group(Uri base, FhirId id, FhirDateTime? since, List<WhichResource>? types, Client? client)?, TResult? system(Uri base, FhirDateTime? since, List<WhichResource>? types, Client? client)?}) → TResult?
inherited

Operators

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