validate method
Метод проверяет валидность данных
Implementation
@override
void validate() {
assert(orderId.length <= 20);
final int? _amount = amount;
if (_amount != null) {
assert(_amount.length <= 10);
}
final String? _ip = ip;
if (_ip != null) {
assert(_ip.length >= 7 && _ip.length <= 45);
}
final String? _description = description;
if (_description != null) {
assert(_description.length <= 250);
}
final String? _recurrent = recurrent;
final String? _customerKey = customerKey;
if (_recurrent != null) {
assert(_recurrent.length <= 1);
assert(_customerKey != null && _customerKey.length <= 36);
}
receipt?.validate();
}