parseOfflineResponse method
Parse offline asset response and return success status
Implementation
@override
bool parseOfflineResponse(dynamic responseData) {
try {
final decodedResponse = jsonDecode(responseData[ConstantVariable.capitalResponse]);
final status = decodedResponse['ursh']?[ConstantVariable.status]?.toString().toUpperCase();
final responseCode = decodedResponse['ursh']?[ConstantVariable.responseCode]?.toString();
return status == ConstantVariable.camelSuccess && responseCode == ConstantVariable.statusCode200;
} catch (e) {
return false;
}
}