ODataSource class

Constructors

ODataSource({required ODataRequester requester, required String entity, String odataPrefix = '/odata.v1'})
const

Properties

entity String
final
hashCode int
The hash code for this object.
no setterinherited
odataPrefix String
final
requester ODataRequester
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create<D, T>(D data, {ODataMap<T>? map, RequestOptions? options, Params? params, String? params1}) Future<RequestOData<T>>
delete(String id, {RequestOptions? options}) Future<RequestOData>
getById<T>(String id, {ODataMap<T>? map, RequestOptions? options, Params? params, String? params1}) Future<RequestOData<T>>
list<T>({ODataMap<List<T>>? map, RequestOptions? options, Params? params, String? params1}) Future<RequestOData<List<T>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace<D>(String id, D data, {RequestOptions? options}) Future<RequestOData>
toString() String
A string representation of this object.
inherited
update<D>(String id, D data, {RequestOptions? options}) Future<RequestOData>

Operators

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

Static Methods

getValueAsList(Map<String, dynamic> data) List<Map<String, dynamic>>
getValueAsMap(Map<String, dynamic> data) Map<String, dynamic>