Class ModeledResponse<T>
A representation of a successful Postgrest response that transforms the string response into a C# Modelled response.
public class ModeledResponse<T> : BaseResponse where T : BaseModel, new()
Type Parameters
T
- Inheritance
-
ModeledResponse<T>
- Inherited Members
Constructors
ModeledResponse(BaseResponse, JsonSerializerSettings, Func<Dictionary<string, string>>?, bool)
public ModeledResponse(BaseResponse baseResponse, JsonSerializerSettings serializerSettings, Func<Dictionary<string, string>>? getHeaders = null, bool shouldParse = true)
Parameters
baseResponse
BaseResponseserializerSettings
JsonSerializerSettingsgetHeaders
Func<Dictionary<string, string>>shouldParse
bool
Properties
Model
The first model in the response.
public T? Model { get; }
Property Value
- T
Models
A list of models in the response.
public List<T> Models { get; }
Property Value
- List<T>