ViewResponse.fromJson constructor
ViewResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
ViewResponse.fromJson(Map<String, dynamic> json)
: status = json[(Static.responseStatusKey??'')] ??
json['status'] ??
json['Status'] ?? false,
message = json[(Static.responseMessageKey??'')]??
json['message'] ??
json['Message'] ??
json['MESSAGE'] ??
'No message received from Server ',
errorMessage = json[(Static.responseErrorMessageKey??'')]??
json['errorMessage'] ??
json['ErrorMessage'] ??
'No error message received from Server ',
data = json[(Static.responseDataKey??'')]??
json['data'] ??
json['Data'] ??
json['DATA'] ??
json['response'] ??
json['Response'] ??
json['RESPONSE'],
statusCode = json[(Static.responseStatusCodeKey??'')]??
json['status_code'] ??
json['statusCode'] ??
json['StatusCode'] ??
json['STATUSCODE'] ??
'No code received from Server ',
pagination = json[(Static.responsePaginationKey??'')]??
json['pagination'] ??
'No code received from Server ';