Creates a new IAP error object with the given error details.
IAPError( {required this.source, required this.code, required this.message, this.details});