cast<E extends BaseServiceResponse> method
E
cast<E extends BaseServiceResponse>()
Implementation
E cast<E extends BaseServiceResponse>() {
if (this is! E) {
throw ArgumentException("BaseServiceResponse casting faild.",
details: {"excepted": "$T", "type": type.name});
}
return this as E;
}