Map<String, dynamic> toJson() => { 'idempotencyKey': idempotencyKey, 'from': from, 'to': to, 'locationId': ?locationId, 'items': [for (final p in items) p.toJson()], 'note': ?note, };